2010/4/15 KrishnaPribadi :
> Is there any way to just turn
> off the exponent number in the right corner and force the x tick labels to
> be integers or floating point depending on how close one is zoomed?
Have a look at matplotlib/ticker.py. Most classes in ticker.py are
derived from class ticke
I just tried this method and it does work if you are using integers or whole
numbers. However, I am working with time on my x axis. So when I zoom too
close, floating point numbers are required... Is there any way to just turn
off the exponent number in the right corner and force the x tick labels
I also had some trouble with exponents in an axis, getting
0.0 to 3.0 on the axis, with +1.998e3. I wanted the years
1998 to 2001 instead. I solved this using the following code
(with the solution bits commented out):
#!/usr/bin/env python
from pylab import *
# from matplotlib.ticker import Format