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

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

n = n * np.diff(bins)

ax.hist(函数内容)

 

posted @ 2021-09-17 20:04  Hany47315  阅读(61)  评论(0)    收藏  举报