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

Function test_shared_and_moved

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

Source from the content-addressed store, hash-verified

159
160
161def test_shared_and_moved():
162 # test if sharey is on, but then tick_left is called that labels don't
163 # re-appear. Seaborn does this just to be sure yaxis is on left...
164 f, (a1, a2) = plt.subplots(1, 2, sharey=True)
165 check_ticklabel_visible([a2], [True], [False])
166 a2.yaxis.tick_left()
167 check_ticklabel_visible([a2], [True], [False])
168
169 f, (a1, a2) = plt.subplots(2, 1, sharex=True)
170 check_ticklabel_visible([a1], [False], [True])
171 a2.xaxis.tick_bottom()
172 check_ticklabel_visible([a1], [False], [True])
173
174
175def test_exceptions():

Callers

nothing calls this directly

Calls 4

check_ticklabel_visibleFunction · 0.85
tick_leftMethod · 0.80
tick_bottomMethod · 0.80
subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…