小编Tra*_*man的帖子

防止matplotlib.pyplot中的科学记数法

我一直试图在pyplot中压制科学记数法几个小时了.在尝试多种解决方案但没有成功之后,我想要一些帮助.

plt.plot(range(2003,2012,1),range(200300,201200,100))
# several solutions from other questions have not worked, including
# plt.ticklabel_format(style='sci', axis='x', scilimits=(-1000000,1000000))
# ax.get_xaxis().get_major_formatter().set_useOffset(False)
plt.show()
Run Code Online (Sandbox Code Playgroud)

情节

提前致谢.

python matplotlib

41
推荐指数
1
解决办法
4万
查看次数

标签 统计

matplotlib ×1

python ×1