Part-3

Bar Graphs are commonly used to represent data. Lets see how to plot attractive and insightful bar graphs using matplotlib.

plt.bar([0,1,2,3],[12,23,21,8])

You can see the bars are centered around 0,1,2 and 3 x-coordinate.

Now let's see how can we plot graphs to compare data of two years. …

Shatakshi Singh

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store