Eric Firing wrote: > Xavier Gnata 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 >>> >> I have uncommented the "axes.formatter.limits : -7, 7" line in my >> matplotlibrc. >> If have have understood the conclusion of this thread correctly, it >> should be taken info account quite soon, isn't it? > > It already *is* taken into account--just not where you want it to be. > And I don't think it *should* be taken into account there. It is used > for the *tick labels*. I don't think that locking the formatting of > these to the *cursor readout* is the right thing to do. The solution > to your problem involves improving the latter with *no change* to the > former. > > I have just now committed a small change set that I think you will > find sufficient improvement for the present, and that I hope no one > else will find objectionable; but we will have to see how that turns > out. It is possible that it will not play well on some > backends/dpi/whatever, or under some other circumstances. > > As noted in the commit message, doing this right requires some changes > in all the interactive backends. > > Eric > Ok. Sorry for the conclusion. Your small change is sufficient for my usecase :). Thanks. I fully agree with you on the right way to really fix that problem; I think pylab is great also because I always get feedback on this mailing list.
Xavier ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users