We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 882f485 commit 92f6a11Copy full SHA for 92f6a11
lib/matplotlib/tests/test_backend_bases.py
@@ -157,3 +157,14 @@ def test_interactive_zoom():
157
158
tb.zoom()
159
assert ax.get_navigate_mode() is None
160
+
161
162
+def test_toolbar_zoompan():
163
+ plt.rcParams['toolbar'] = 'toolmanager'
164
+ ax = plt.gca()
165
+ assert ax.get_navigate_mode() is None
166
+ tb = NavigationToolbar2(ax.figure.canvas)
167
+ tb.zoom()
168
+ assert ax.get_navigate_mode() == "ZOOM"
169
+ tb.pan()
170
+ assert ax.get_navigate_mode() == "PAN"
0 commit comments