<div dir="ltr"><div>John,</div><div><br></div>This seems to be a common question (<a href="http://stackoverflow.com/questions/14711655/how-to-prevent-numbers-being-changed-to-exponential-form-in-python-matplotlib-fi/14711866#14711866">http://stackoverflow.com/questions/14711655/how-to-prevent-numbers-being-changed-to-exponential-form-in-python-matplotlib-fi/14711866#14711866</a>)<div><br></div><div>ax = plt.gca()<br>ax.get_xaxis().get_major_formatter().set_useOffset(False)<br>ax.get_yaxis().get_major_formatter().set_useOffset(False)<br><br>will control a single axes </div><div><br>To control it globally set `axes.formatter.useoffset: False` in rcparams. <br>see <a href="http://matplotlib.org/users/customizing.html#a-sample-matplotlibrc-file">http://matplotlib.org/users/customizing.html#a-sample-matplotlibrc-file</a></div><div><br><br>Where would you have expected to look for this information in the documentation?<br><br>Tom<br><pre class="inbox-inbox-lang-py inbox-inbox-prettyprint inbox-inbox-prettyprinted"><span style="font-family:sans-serif;font-size:13px;line-height:1.5">PS the sourceforge list is no longer used, please send future mail to <a href="mailto:matplotlib-users@python.org">matplotlib-users@python.org</a></span><br></pre></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jun 22, 2016 at 8:30 PM John Ladasky <<a href="mailto:jladasky@itu.edu">jladasky@itu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi there,</div><div><br></div><div>I have been subscribed to matplotlib-users before.  I have a new job, and now I'm connecting from a new email address.  I've been using Matplotlib since before 1.0 was released.  Currently, I'm using MPL 1.4.2 and Python 3.5 on Ubuntu Linux 15.04 (if any of that matters).</div><div> </div>Please have a look at the following graph:<div><br></div><div><img src="cid:ii_1557a7b4dfd0438d" alt="For matplotlib discussion.png" class="" style="max-width: 100%;"><br></div><div><br clear="all"><div>The values in the data set used to plot these two graphs range from 14942 to 14948.  In other words, the median of the data set is very far from zero, but the range of the data is very small.  With such a data set, MPL subtracts a large offset value from the data points, choosing a value such that the remaining differences are small, positive numbers.  I understand the logic behind this, it simplifies graph labeling on the x-axis of the left graph, and the y-axis of the right graph.</div><div><br></div><div>However, I do not like the way that MPL is displaying the offset value.  It is written in small text, and it does not show up in a consistent place.  On a figure with many adjacent axes, it sometimes isn't clear which axes owns the annotation.  I would prefer to incorporate the offset in the axes title: for example, the title of the left graph could read "internal thermistor (+14940)".</div><div><br></div><div>So, what is this offset value called in Matplotlib?  How do I retrieve it?  How can I override its display?  I can obviously do this by wrapping these particular plots in functions which apply the offset before giving the data to MPL.  But I would prefer to work with MPL itself, as I don't always know when MPL will judge that a data offset value is needed. </div><div><br></div><div>Thanks for your help!</div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><b>John J. Ladasky Jr., Ph.D.</b><div><b>Research Scientist</b></div><div><b>International Technological University</b></div><div><b>2711 N. First St, San Jose, CA 95134 USA</b></div></div></div>
</div></div>
------------------------------------------------------------------------------<br>
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San<br>
Francisco, CA to explore cutting-edge tech and listen to tech luminaries<br>
present their vision of the future. This family event has something for<br>
everyone, including kids. Get more information and register today.<br>
<a href="http://sdm.link/attshape" rel="noreferrer" target="_blank">http://sdm.link/attshape</a>_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@lists.sourceforge.net" target="_blank">Matplotlib-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://lists.sourceforge.net/lists/listinfo/matplotlib-users</a><br>
</blockquote></div></div>