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

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

n = n * np.diff(bins)

ax.hist(函数内容)

 

posted @ 2021-09-17 20:04  CodeYaSuo  阅读(48)  评论(0编辑  收藏  举报