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
On Tue, 24 Apr 2007, Tommy Grav wrote:
> I have a plot where the x axis ticks are given as
> 0.1 0.15 0.20 0.025 0.30 0.35
> with +3.732e2 given in the lower right of the axis.
> How can I force the ticks to have
> 373.3 373.35
If all else fails, you can set the tick labels by hand.
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
On 4/24/07, Tommy Grav <[EMAIL PROTECTED]> wrote:
> I have a plot where the x axis ticks are given as
>
> 0.1 0.15 0.20 0.025 0.30 0.35
>
> with +3.732e2 given in the lower right of the axis.
> How can I force the ticks to have
> 373.3 373.35
>
It always helps if you give us complete ex
I have a plot where the x axis ticks are given as
0.1 0.15 0.20 0.025 0.30 0.35
with +3.732e2 given in the lower right of the axis.
How can I force the ticks to have
373.3 373.35
and so on?
Cheers
Tommy
-
Th