Home / Python Matplotlib / How to Draw a Histogram in Python In this example we will show how to draw a histogram in Python. Source Code import numpy import matplotlib.pyplot as plt a = numpy.random.uniform(0.0, 10.0, 500) plt.hist(a, 10) plt.show() Output: