placing minor ticks below major

Hello everybody and a bit thanks to the matplotlib team. Its great stuff.

I would like to place the minor ticks for days, lower than the major ticks for hours, so that they are visible. Right now they overlap each other. I would like to achieve a result like

11:00 12:00 01:00
>
Monday

The vertical line is not important, I just need days to be lower than hours.

The pythonic API could certainly use more documentation. Pylab is good but only for working in the same fashion as matlab.

I think you might get what you want by setting the tick "pad". See
the help for matplotlib.axis.Tick. From the python shell type

import matplotlib.axis
help(matplotlib.axis.Tick)

or see the online documentation at
http://matplotlib.sourceforge.net/matplotlib.axis.html#Tick

Eg,
for tick in ax.xaxis.get_major_ticks():
    tick.set_pad(12)

You can also set the default for this parameter in your configuration
file. See
http://matplotlib.sourceforge.net/matplotlibrc

JDH

···

On 6/18/07, Thanos Panousis <pthanos@...287...> wrote:

Hello everybody and a bit thanks to the matplotlib team. Its great stuff.

I would like to place the minor ticks for days, lower than the major ticks
for hours, so that they are visible. Right now they overlap each other. I
would like to achieve a result like

11:00 12:00 01:00
                >
           Monday

The vertical line is not important, I just need days to be lower than hours.

The pythonic API could certainly use more documentation. Pylab is good but
only for working in the same fashion as matlab.