Draw a Bar Graph using Python Matplotlib December 14, 2018 Draw a Bar Graph using Python Matplotlib Code : import numpy as np from matplotlib import pyplot as plt x=[1,2,3,4,5] print(x) y = [1,1,3,6,1] print(y) plt.plot(x,y,"ob") plt.bar(x,y) plt.show() Output : Share Get link Facebook X Pinterest Email Other Apps Labels Python Share Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment