On Thursday 03 August 2006 11:59, Alexander Michael wrote:
> On 8/3/06, Steve Schmerler <[EMAIL PROTECTED]> wrote:
> > Hi all
> >
> > How can I change the default behavior of the tick labeling from say
> >
> > 1  2   3   4  x1e-5
> >
> > to
> >
> > 1e-5  2e-5  3e-5  4e-5 ?
> >
> > My thesis supervisor wants it that way :(
> >
> > cheers,
> > steve
>
> There is problably a better way, but onne way is to set  the label
> formatter yourself:
>
> import pylab
> import matplotlib
>
> pylab.plot([1.0E-5,2.5E-5,3.0E-5], [1.0, 3.0, 2.0])
>
> ax = pylab.gca()
> ax.xaxis.set_major_formatter(
>     matplotlib.ticker.FormatStrFormatter('%g'))

Use OldScalarFormatter instead.



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to