如何更改 matplotlib 中的垃圾箱数量?
How to change number of bins in matplotlib?
我有以下代码:
ax1.hist(true_time, bins=500, edgecolor="none")
ax2.hist(true_time_2, bins=500, edgecolor="none")
我预计它会给我两个具有相同 bin 数量的 hist,但它不会:
如何正确操作?
如果您在 true_time 中有一些遥远的异常值,可能是为了包含它而将 bin 做得非常大。
我有以下代码:
ax1.hist(true_time, bins=500, edgecolor="none")
ax2.hist(true_time_2, bins=500, edgecolor="none")
我预计它会给我两个具有相同 bin 数量的 hist,但它不会:
如何正确操作?
如果您在 true_time 中有一些遥远的异常值,可能是为了包含它而将 bin 做得非常大。