From: Yves R. <yve...@ep...> - 2008-05-06 16:18:57
|
Hi all, How is it possible to display by default the minor ticks with an interval 5 times smaller than the major ticks. I can do that for a known range of data : for example : ax = pt.gca() ax.xaxis.set_major_locator(MultipleLocator(10)) ax.xaxis.set_minor_locator(MultipleLocator(10/5.)) but I would like to have the major still set by default, i.e. : ax.xaxis.set_major_locator(AutoLocator()) and now the minor automatically set to 1/5. of the value used for the major. How can I do that ? Thanks for your help, yves -- (o o) --------------------------------------------oOO--(_)--OOo------- Yves Revaz Laboratory of Astrophysics EPFL Observatoire de Sauverny Tel : ++ 41 22 379 24 28 51. Ch. des Maillettes Fax : ++ 41 22 379 22 05 1290 Sauverny e-mail : Yve...@ep... SWITZERLAND Web : http://www.lunix.ch/revaz/ ---------------------------------------------------------------- |