Move ticks and ticklabels (if present) to the top of the Axes.
(self)
| 2692 | self.stale = True |
| 2693 | |
| 2694 | def tick_top(self): |
| 2695 | """ |
| 2696 | Move ticks and ticklabels (if present) to the top of the Axes. |
| 2697 | """ |
| 2698 | label = True |
| 2699 | if 'label1On' in self._major_tick_kw: |
| 2700 | label = (self._major_tick_kw['label1On'] |
| 2701 | or self._major_tick_kw['label2On']) |
| 2702 | self.set_ticks_position('top') |
| 2703 | # If labels were turned off before this was called, leave them off. |
| 2704 | self.set_tick_params(which='both', labeltop=label) |
| 2705 | |
| 2706 | def tick_bottom(self): |
| 2707 | """ |