change default format of ticks on vertical axis

Works great Eric.
Is this in the documentation somewhere?
Thanks,
Mark

···

From: Eric Firing <efiring@…202…>

On 03/07/2011 11:51 AM, Mark Bakker wrote:

My values on the vertical axis are large, but the range is small:

plot([3004,3005,3006])

By default this plots 0,1,2 as tickmarks along the vertical axis, and

then at the top of the vertical axis is prints “+3.005e3”.

I prefer to simply get 3004,3005,3006 at the tickmarks.

If you are using a recent mpl, try following your plot command with

ticklabel_format(useOffset=False)

Eric

Works great Eric.
Is this in the documentation somewhere?

Probably only in the change notes and in the docstrings.
http://matplotlib.sourceforge.net/_static/CHANGELOG

Eric

···

On 03/08/2011 09:53 AM, Mark Bakker wrote:

Thanks,
Mark

    From: Eric Firing <efiring@…202… <mailto:efiring@…202…>>
    On 03/07/2011 11:51 AM, Mark Bakker wrote:
     > My values on the vertical axis are large, but the range is small:
     > plot([3004,3005,3006])
     > By default this plots 0,1,2 as tickmarks along the vertical axis, and
     > then at the top of the vertical axis is prints "+3.005e3".
     > I prefer to simply get 3004,3005,3006 at the tickmarks.

    If you are using a recent mpl, try following your plot command with

    ticklabel_format(useOffset=False)

    Eric

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users