Label & ticks spacing

Hi, Thanks for your help.

    >> 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.

The tick labels are part of the Tick, so this setting will affect
them. The Axis labels are automatically placed to be below (or to the
left of) the tick labels. So it may be enough to simply set the pad.

JDH

···

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

Hi, John!

···

On Sunday 17 September 2006 19:26, John Hunter wrote:

The tick labels are part of the Tick, so this setting will affect
them. The Axis labels are automatically placed to be below (or to the
left of) the tick labels. So it may be enough to simply set the pad.

I have found the parameter I need.
It was placed inside of Axis class definition.

--------------
class Axis(Artist):

    """
    Public attributes
      transData - transform data coords to display coords
      transAxis - transform axis coords to display coords

    """
    LABELPAD = 5
--------------

I'm wondering if it might be possible to release this parameter, that
anyone could adjust it according his needs.

It will make matplotlib even more flexible.

Thanks for the great lib!

--
Alexey