阅读背景:

如何强制Y轴只在Matplotlib中使用整数?

来源:互联网 

I'm plotting a histogram using the matplotlib.pyplot module and I am wondering how I can force the y-axis labels to only show integers (e.g. 0, 1, 2, 3 etc.) and not decimals (e.g. 0., 0.5, 1., 1.5, 2. etc.). I'm plotting a histogram using the matplotlib.p




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: