HOME/Articles/

matplotlib example bar chart plotting (snippet)

Article Outline

Python matplotlib example 'bar chart plotting'

python bar chart plotting

Python matplotlib example: bar chart plotting

plt.bar([1,2,3],[5,2,1])
plt.xlabel("This is x-axis label")
plt.ylabel("This is y-axis label")
plt.title("Simple bar chart")
plt.show()