Bar Graphs are commonly used to represent data. Lets see how to plot attractive and insightful bar graphs using matplotlib.
1. Plot a simple bar graph with two arrays.
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. …