【发布时间】:2020-09-01 15:01:33
【问题描述】:
我在 python 中有一个加权直方图,我喜欢拥有特定 bin 的所有数据点。
我用它来绘制直方图:
c,n,x=plt.hist(e, bins=50, range=(-500, -400), weights=p, color='blue')
e 和 p 都有 130k 个数据点。
我喜欢获取特定 bin 的所有数据点(假设位在 -450)。
【问题讨论】:
-
什么是 c、n 和 x?
标签: python histogram binning weighted-graph