The formatting of tick labels is controlled by a Formatter
object, which assuming you haven't done anything fancy will be a ScalerFormatter
by default. This formatter will use a constant shift if the fractional change of the values visible is very small. To avoid this, simply turn it off:
plt.plot(arange(0,100,10) + 1000, arange(0,100,10))
ax = plt.gca()
ax.get_xaxis().get_major_formatter().set_useOffset(False)
plt.draw()
If you want to avoid scientific notation in general,
ax.get_xaxis().get_major_formatter().set_scientific(False)
Can control this with globally via the axes.formatter.useoffset
rcparam.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…