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

Function test_label_outer_span

lib/matplotlib/tests/test_subplots.py:135–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133
134
135def test_label_outer_span():
136 fig = plt.figure()
137 gs = fig.add_gridspec(3, 3)
138 # +---+---+---+
139 # | 1 | |
140 # +---+---+---+
141 # | | | 3 |
142 # + 2 +---+---+
143 # | | 4 | |
144 # +---+---+---+
145 a1 = fig.add_subplot(gs[0, 0:2])
146 a2 = fig.add_subplot(gs[1:3, 0])
147 a3 = fig.add_subplot(gs[1, 2])
148 a4 = fig.add_subplot(gs[2, 1])
149 for ax in fig.axes:
150 ax.label_outer()
151 check_ticklabel_visible(
152 fig.axes, [False, True, False, True], [True, True, False, False])
153
154
155def test_label_outer_non_gridspec():

Callers

nothing calls this directly

Calls 5

check_ticklabel_visibleFunction · 0.85
figureMethod · 0.80
add_gridspecMethod · 0.80
add_subplotMethod · 0.80
label_outerMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…