matplotlib 直方图 使绘制的概率为 1

n, bins = np.histogram(列表或 np.array对象, 50, normed=True)

n = n * np.diff(bins)

ax.hist(函数内容)

如果觉得文章不错,可以分享给其他人哟~
原文地址:https://www.cnblogs.com/hany-postq473111315/p/15306120.html