(fig_test, fig_ref)
| 9220 | |
| 9221 | @check_figures_equal() |
| 9222 | def test_shared_axes_clear(fig_test, fig_ref): |
| 9223 | x = np.arange(0.0, 2*np.pi, 0.01) |
| 9224 | y = np.sin(x) |
| 9225 | |
| 9226 | axs = fig_ref.subplots(2, 2, sharex=True, sharey=True) |
| 9227 | for ax in axs.flat: |
| 9228 | ax.plot(x, y) |
| 9229 | |
| 9230 | axs = fig_test.subplots(2, 2, sharex=True, sharey=True) |
| 9231 | for ax in axs.flat: |
| 9232 | ax.clear() |
| 9233 | ax.plot(x, y) |
| 9234 | |
| 9235 | |
| 9236 | def test_shared_axes_retick(): |