pyplot draw hist code example Example: python matpotlib histplot import matplotlib.pyplot as plt plt.hist(x) #x is a array of numbers plt.show()