(fig_test, fig_ref)
| 16 | |
| 17 | @check_figures_equal() |
| 18 | def test_zoom_inset_update_limits(fig_test, fig_ref): |
| 19 | # Updating the inset axes limits should also update the indicator #19768 |
| 20 | ax_ref = fig_ref.add_subplot() |
| 21 | ax_test = fig_test.add_subplot() |
| 22 | |
| 23 | for ax in ax_ref, ax_test: |
| 24 | ax.set_xlim([0, 5]) |
| 25 | ax.set_ylim([0, 5]) |
| 26 | |
| 27 | inset_ref = ax_ref.inset_axes([0.6, 0.6, 0.3, 0.3]) |
| 28 | inset_test = ax_test.inset_axes([0.6, 0.6, 0.3, 0.3]) |
| 29 | |
| 30 | inset_ref.set_xlim([1, 2]) |
| 31 | inset_ref.set_ylim([3, 4]) |
| 32 | ax_ref.indicate_inset_zoom(inset_ref) |
| 33 | |
| 34 | ax_test.indicate_inset_zoom(inset_test) |
| 35 | inset_test.set_xlim([1, 2]) |
| 36 | inset_test.set_ylim([3, 4]) |
| 37 | |
| 38 | |
| 39 | def test_inset_indicator_update_styles(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…