bins:
Either an integer number of bins or a sequence giving the bins. If bins is an integer, bins + 1 bin edges will be returned, consistent with numpy.histogram() for numpy version >= 1.3, and with the new = True argument in earlier versions. Unequally spaced bins are supported if bins is a sequence.
可以使用以下命令更改y轴上的日志:
或者在图像对焦时按L键。
但是,使用
log=True
的hist()
不会绘制对数x轴。从docs:因此,如果您只设置
bins=10
,它们的间距将相等,这就是为什么当您将xscale设置为log时,它们的宽度会减小。要在log xscale中获得等间距的存储箱,您需要如下内容:相关问题 更多 >
编程相关推荐