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 f3c54a0 commit b510f19Copy full SHA for b510f19
lib/matplotlib/backends/backend_qt5agg.py
@@ -69,7 +69,7 @@ def paintEvent(self, e):
69
# As described in __init__ above, we need to be careful in cases with
70
# mixed resolution displays if dpi_ratio is changing between painting
71
# events.
72
- if self._dpi_ratio_prev or self._dpi_ratio != self._dpi_ratio_prev:
+ if self._dpi_ratio_prev is None or self._dpi_ratio != self._dpi_ratio_prev:
73
# We need to update the figure DPI
74
self._update_figure_dpi()
75
# The easiest way to resize the canvas is to emit a resizeEvent
0 commit comments