From: Steve S. <el...@gm...> - 2006-08-03 16:35:08
|
Darren Dale wrote: > On Thursday 03 August 2006 11:59, Alexander Michael wrote: >> On 8/3/06, Steve Schmerler <el...@gm...> 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. > OK, I'll try that one too ... Thanks. -- Random number generation is the art of producing pure gibberish as quickly as possible. |