axis elements and zorder

Hi all,

    > I have a question about zorder and Axis elements. I read
    > in the thread titled "zorder not working for grid
    > lines??" that since grid lines are Axis elements, they
    > don't respect the zorder. It's possible to set grid
    > lines below other plot elements with
    > Axis.set_axisbelow(). However, I have a case where I
    > want grid lines to be below my plot elements, but I want
    > the ticks to be above them (test code attached). As it
    > stands, they can be either both below or both above.

    > Has anyone found a way around this limitation? Is having
    > zorder apply to Axis elements on the wishlist?

It would be a cleaner solution if the grid and ticks respected the
zorder property, but it's not trivial to do it that way given the
current design. Instead, as you've noticed, you need to set the
axisbelow property on the axes

  ax.set_axisbelow(True)

but this doesn't solve your problem of needing the ticks above and
grid below.... You might try setting both above, but setting the
alpha on the grid so you can at least see through it.

Yes, fixing this is on the list of things to do, but doing it right
would requires a significant refactoring of the way ticks are
handled.

JDH