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.
1 parent a097c6f commit 04ee64dCopy full SHA for 04ee64d
1 file changed
lib/matplotlib/tests/test_backend_qt5.py
@@ -145,6 +145,10 @@ def test_dpi_ratio_change():
145
146
qt_canvas.draw()
147
qApp.processEvents()
148
+ # this second processEvents is required to fully run the draw.
149
+ # On `update` we notice the DPI has changed and trigger a
150
+ # resize event to refresh, the second processEvents is
151
+ # required to process that and fully update the window sizes.
152
153
154
# The DPI and the renderer width/height change
0 commit comments