()
| 211 | |
| 212 | |
| 213 | def test_widgetlock_zoompan(): |
| 214 | fig, ax = plt.subplots() |
| 215 | ax.plot([0, 1], [0, 1]) |
| 216 | fig.canvas.widgetlock(ax) |
| 217 | tb = NavigationToolbar2(fig.canvas) |
| 218 | tb.zoom() |
| 219 | assert ax.get_navigate_mode() is None |
| 220 | tb.pan() |
| 221 | assert ax.get_navigate_mode() is None |
| 222 | |
| 223 | |
| 224 | @pytest.mark.parametrize("plot_func", ["imshow", "contourf"]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…