Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 14d68df + a12a7ee commit fad82b8Copy full SHA for fad82b8
1 file changed
lib/matplotlib/tests/test_backend_qt5.py
@@ -161,3 +161,23 @@ def test_dpi_ratio_change():
161
assert size.height() == 240
162
assert_equal(qt_canvas.get_width_height(), (600, 240))
163
assert_equal(fig.get_size_inches(), (5, 2))
164
+
165
166
+@pytest.mark.backend('Qt5Agg')
167
+def test_subplottool():
168
+ fig, ax = plt.subplots()
169
+ with mock.patch(
170
+ "matplotlib.backends.backend_qt5.SubplotToolQt.exec_",
171
+ lambda self: None):
172
+ fig.canvas.manager.toolbar.configure_subplots()
173
174
175
176
+def test_figureoptions():
177
178
+ ax.plot([1, 2])
179
+ ax.imshow([[1]])
180
181
+ "matplotlib.backends.qt_editor.formlayout.FormDialog.exec_",
182
183
+ fig.canvas.manager.toolbar.edit_parameters()
0 commit comments