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

Function test_widgetlock_zoompan

lib/matplotlib/tests/test_backend_bases.py:213–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211
212
213def 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"])

Callers

nothing calls this directly

Calls 6

zoomMethod · 0.95
panMethod · 0.95
NavigationToolbar2Class · 0.90
get_navigate_modeMethod · 0.80
subplotsMethod · 0.45
plotMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…