|
From: Christopher G. <chr...@gm...> - 2012-08-19 20:28:10
|
Using matplotlib 1.1.1.
If one runs the following code:
from pylab import *
plot([19.185,19.187],[0.0009,0.0011],'b.')
show()
The x-axis is labelled 0.0005, 0.0010, 0.0015 etc +1.9184e1
This is unreadable and does not seem like a good default behavior!
One can add
gca().xaxis.set_major_formatter(FormatStrFormatter('$%g$'))
before "show()"
to obtain an x-axis labelled 19.1845, 19.185, 19.1855, etc.
Can one change the default label formatting behavior with a matplotlib rc?
However, I would not want to e.g. override the 10^-3, 10^-2, etc when using
log axes.
Best regards,
Chris
|