Plot histogram in python

Histogram plotting using matplotlib is one piece of cake. All you need to do is use matplotlib's plt.hist() function and pass in the data together with the number of bins and a few optional parameters.