<div dir="ltr"><div>Please subscribe to the mailing list so you can post un-moderated (<a href="https://mail.python.org/mailman/listinfo/matplotlib-users">https://mail.python.org/mailman/listinfo/matplotlib-users</a>)</div><div><br></div><div>The default formatter identifies when the data is over a small range on a large base and formats the ticks with an offset, see <a href="http://matplotlib.org/api/ticker_api.html#default-formatter">http://matplotlib.org/api/ticker_api.html#default-formatter</a></div><div><br></div><div>The location is set by the internals of `Axis`, a quick glance at the code suggests that manually tweaking the location may not be reliable.  </div><div><br></div><div>You can get a reference to the text object via the `get_offset_text` method on the `ax.xaxis` or `ax.yaxis` instances (<a href="http://matplotlib.org/api/_as_gen/matplotlib.axis.Axis.get_offset_text.html#matplotlib.axis.Axis.get_offset_text">http://matplotlib.org/api/_as_gen/matplotlib.axis.Axis.get_offset_text.html#matplotlib.axis.Axis.get_offset_text</a>) to tweak the font properties.</div><div><br></div><div>Tom</div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Jan 28, 2017 at 10:59 AM solisgbmpl <<a href="mailto:solisgb@gmail.com">solisgb@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm using matplotlib to get a large amount of plots saved as png files. In<br class="gmail_msg">
some of them the Y axis autoscales in a different way and a new origin of<br class="gmail_msg">
the Y axis appears in the top left corner of the frame (2.163e2 in the image<br class="gmail_msg">
attached)<br class="gmail_msg">
<br class="gmail_msg">
I don't know how I can have a reference to this number to change the<br class="gmail_msg">
fontsize and even their position.<br class="gmail_msg">
<<a href="http://matplotlib.1069221.n5.nabble.com/file/n47684/040_Sierra_Espu%C3%B1a_263660009.png" rel="noreferrer" class="gmail_msg" target="_blank">http://matplotlib.1069221.n5.nabble.com/file/n47684/040_Sierra_Espu%C3%B1a_263660009.png</a>><br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
View this message in context: <a href="http://matplotlib.1069221.n5.nabble.com/Formating-unexpected-number-when-autoscaling-Y-axis-tp47684.html" rel="noreferrer" class="gmail_msg" target="_blank">http://matplotlib.1069221.n5.nabble.com/Formating-unexpected-number-when-autoscaling-Y-axis-tp47684.html</a><br class="gmail_msg">
Sent from the matplotlib - users mailing list archive at Nabble.com.<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
Matplotlib-users mailing list<br class="gmail_msg">
<a href="mailto:Matplotlib-users@python.org" class="gmail_msg" target="_blank">Matplotlib-users@python.org</a><br class="gmail_msg">
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" class="gmail_msg" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br class="gmail_msg">
</blockquote></div>