|
From: John H. <jd...@gm...> - 2009-05-30 11:53:24
|
On Sat, May 30, 2009 at 2:49 AM, Xavier Gnata <xav...@gm...> wrote: > ok. My bad! Sorry. > I have changed the default to %1.4g so that is matches my usecases *but* I > agree that correct way to improve it in not that trivial... You can control the point at which mpl falls over to scientific notation. From the matplotlibrc file (see http://matplotlib.sourceforge.net/users/customizing.html) axes.formatter.limits : -7, 7 # use scientific notation if log10 # of the axis range is smaller than the # first or larger than the second I'm actually surprised you are seeing problems with images of 1000x1000 -- it makes me suspect you have an older matplotlib version or an older matplotlibrc laying around because at -7,7, which is the current default, you should not see exponential formatting until you get to much larger sizes. JDH |