axis tick_top, tick_bottom behavior

Hi Everyone,

The x axis can draw ticks on the top and/or the bottom of the window. The
default is both, with ticklabels on the bottom. xaxis.tick_top will cause
ticks and labels to draw only on the top, tick_bottom will do the same on the
bottom. But if I make such a change, there is no xaxis method to draw ticks
(and maybe labels) on both the top and the bottom, if I want to undo the
changes.

I would like to change the top and bottom ticks and labels independently,
which would require a small change in these methods:

    def tick_top(self):
        'use ticks only on top'
        ticks = self.get_major_ticks()
        ticks.extend( self.get_minor_ticks() )
        for t in ticks:
            t.tick1On = False
            t.tick2On = True
            t.label1On = False
            t.label2On = True

could become this:

    def tick_top(self, draw=True):
        'use ticks on top'
        ticks = self.get_major_ticks()
        ticks.extend( self.get_minor_ticks() )
        for t in ticks:
            t.tick2On = draw

    def tick_label_top(self, draw=True):
        'use tick labels on top'
        ticks = self.get_major_ticks()
        ticks.extend( self.get_minor_ticks() )
        for t in ticks:
            t.label2On = draw

Would that cause problems for anyone? Of course, the same would hold for the
y-axis...

···

--
Darren S. Dale

Bard Hall
Department of Materials Science and Engineering
Cornell University
Ithaca, NY. 14850

dd55@...163...