MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / tick_top

Method tick_top

lib/matplotlib/axis.py:2694–2704  ·  view source on GitHub ↗

Move ticks and ticklabels (if present) to the top of the Axes.

(self)

Source from the content-addressed store, hash-verified

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

Callers 13

twinyMethod · 0.80
spyMethod · 0.80
matshowMethod · 0.80
test_spyFunction · 0.80
test_matshowFunction · 0.80
test_move_offsetlabelFunction · 0.80
test_align_labelsFunction · 0.80
test_align_titlesFunction · 0.80
test_spy_boxFunction · 0.80
titles_demo.pyFile · 0.80
broken_axis.pyFile · 0.80

Calls 2

set_ticks_positionMethod · 0.95
set_tick_paramsMethod · 0.80

Tested by 7

test_spyFunction · 0.64
test_matshowFunction · 0.64
test_move_offsetlabelFunction · 0.64
test_align_labelsFunction · 0.64
test_align_titlesFunction · 0.64
test_spy_boxFunction · 0.64