creating plot