We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db30cbe commit 1ea856dCopy full SHA for 1ea856d
1 file changed
lib/matplotlib/tests/test_backend_qt.py
@@ -215,6 +215,10 @@ def set_device_pixel_ratio(ratio):
215
assert qt_canvas.get_width_height() == (600, 240)
216
assert (fig.get_size_inches() == (5, 2)).all()
217
218
+ # check that closing the figure restores the original dpi
219
+ plt.close(fig)
220
+ assert fig.dpi == 120
221
+
222
223
@pytest.mark.backend('QtAgg', skip_on_importerror=True)
224
def test_subplottool():
0 commit comments