python直方图

import matplotlib.pyplot as plt

import numpy as np

pop = np.random.randint(0,100,100)

pop

n,bins,patches = plt.hist(pop,bins=20)

plt.show()

原文地址:https://www.cnblogs.com/wei23/p/13117966.html