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

时间:2021-09-23 20:30:55   收藏:0   阅读:32
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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!