import matplotlib.pyplot as plt x=[1,2,3,4,5] y=[3,2,4,1,5] plt.plot(x,y) plt.xlabel('x-axis label') plt.ylabel('y-axis label') plt.title('line chart example') plt.show import matplotlib.pyplot as plt x=['a','b','c','d'] y=[3,7,2,5,9] plt.bar(x,y) plt.xlabel('x-axis label') plt.ylabel('y-axis label') plt.title('vertical bar chart example') plt.show