[Matplotlib-users] How to plot tick values in-place?

Benjamin Root ben.v.root at gmail.com
Wed Feb 10 12:52:23 EST 2016

I think setting the rcParam 'axes.formatter.useoffset' to False prior to
any plotting would do the trick.

plot.rcParams['axes.formatter.useoffset'] = False

Untested, though.

Ben Root

On Wed, Feb 10, 2016 at 12:06 PM, Ilja Honkonen <ilja.j.honkonen at nasa.gov>

> Hello
> I didn't find an answer with google or stackoverflow, maybe someone here
> can help? The code:
> import matplotlib.pyplot as plot
> plot.plot([0, 1e-9, 0, -1e-9])
> plot.show()
> produces a plot in which y ticks are -1, -0.5, 0, 0.5, 1 and their scaling
> is plotted elsewhere, how do I force matplotlib to plot the tics in-place
> as -1e-9, -0.5-e9... so I don't have to search other parts of the plot for
> potential corrections to tick values? Thanks!
> Ilja
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20160210/63ce7d0f/attachment.html>

More information about the Matplotlib-users mailing list