我一直试图在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)

提前致谢.