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

Function test_twinx_cla

lib/matplotlib/tests/test_axes.py:360–380  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

358
359
360def test_twinx_cla():
361 fig, ax = plt.subplots()
362 ax2 = ax.twinx()
363 ax3 = ax2.twiny()
364 plt.draw()
365 assert not ax2.xaxis.get_visible()
366 assert not ax2.patch.get_visible()
367 ax2.cla()
368 ax3.cla()
369
370 assert not ax2.xaxis.get_visible()
371 assert not ax2.patch.get_visible()
372 assert ax2.yaxis.get_visible()
373
374 assert ax3.xaxis.get_visible()
375 assert not ax3.patch.get_visible()
376 assert not ax3.yaxis.get_visible()
377
378 assert ax.xaxis.get_visible()
379 assert ax.patch.get_visible()
380 assert ax.yaxis.get_visible()
381
382
383@pytest.mark.parametrize('twin', ('x', 'y'))

Callers

nothing calls this directly

Calls 6

subplotsMethod · 0.45
twinxMethod · 0.45
twinyMethod · 0.45
drawMethod · 0.45
get_visibleMethod · 0.45
claMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…