0
我想将我的刻度格式化为一定数量的有效数字,并删除自动偏移量。对于后者,我使用https://stackoverflow.com/a/6654046/1021819,和前我会用https://stackoverflow.com/a/25750438/1021819,即matplotlib:不带偏移的格式轴刻度
y_formatter = matplotlib.ticker.ScalarFormatter(useOffset=False)
ax.yaxis.set_major_formatter(y_formatter)
和
ax.yaxis.set_major_formatter(mtick.FormatStrFormatter('%.2e'))
如何结合FormatStrFormatter和useOffset语法?
谢谢!扮演魔鬼的拥护者,如果我想在这个计划下得到抵消,该怎么办? – jtlz2