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

Function test_twin_remove

lib/matplotlib/tests/test_axes.py:6181–6192  ·  view source on GitHub ↗
(fig_test, fig_ref)

Source from the content-addressed store, hash-verified

6179
6180@check_figures_equal()
6181def test_twin_remove(fig_test, fig_ref):
6182 ax_test = fig_test.add_subplot()
6183 ax_twinx = ax_test.twinx()
6184 ax_twiny = ax_test.twiny()
6185 ax_twinx.remove()
6186 ax_twiny.remove()
6187
6188 ax_ref = fig_ref.add_subplot()
6189 # Ideally we also undo tick changes when calling ``remove()``, but for now
6190 # manually set the ticks of the reference image to match the test image
6191 ax_ref.xaxis.tick_bottom()
6192 ax_ref.yaxis.tick_left()
6193
6194
6195@image_comparison(['twin_spines.png'], remove_text=True, style='_classic_test',

Callers

nothing calls this directly

Calls 6

add_subplotMethod · 0.80
tick_bottomMethod · 0.80
tick_leftMethod · 0.80
twinxMethod · 0.45
twinyMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…