Label & ticks spacing

Hi, all how to change the spacing between axes and ticks

    > labels, ticks labels and axes labels? I mean vertical
    > spacing for X axis and horizontal one for Y.

See these parameters from your matplotlibrc file:
http://matplotlib.sf.net/matplotlibrc

  xtick.major.pad : 4 # distance to major tick label in points
  xtick.minor.pad : 4 # distance to the minor tick label in points
  ytick.major.pad : 4 # distance to major tick label in points
  ytick.minor.pad : 4 # distance to the minor tick label in points

From code, you can also control the pad with, for example,

for tick in ax.xaxis.get_major_ticks():
    tick.set_pad(6)

ditto for the yaxis and minor ticks..

JDH

Hi,
Thanks for your help.

···

On Sunday 17 September 2006 16:54, John Hunter wrote:

From code, you can also control the pad with, for example,
for tick in ax.xaxis.get_major_ticks():
    tick.set_pad(6)

And how do I do same thing with labels?
They are instances of Text object not ticks.

--
Alexey