(fig_test, fig_ref)
| 6179 | |
| 6180 | @check_figures_equal() |
| 6181 | def 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', |
nothing calls this directly
no test coverage detected
searching dependent graphs…