import matplotlib . pyplot as plt year=(2014,2015,2016,2017,2018,1019) onion=(60,50,55,70,40,35) tomato=(55,50,40,30,80,40) plt.plot (year,onion,color="red",label="onion") plt.plot (year,tomato,color="blue",label="tomato") plt.legend() plt.xlabel("year") plt.ylabel("price") plt.show()