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 6b15984 commit 591a9e0Copy full SHA for 591a9e0
1 file changed
lib/matplotlib/backends/backend_qt5agg.py
@@ -194,9 +194,8 @@ def __init__(self, figure):
194
super(FigureCanvasQTAgg, self).__init__(figure=figure)
195
# We don't want to scale up the figure DPI more than once.
196
# Note, we don't handle a signal for changing DPI yet.
197
- if not hasattr(self.figure, '_original_dpi'):
198
- self.figure._original_dpi = self.figure.dpi
199
- self.figure.dpi = self._dpi_ratio * self.figure._original_dpi
+ self.figure._original_dpi = self.figure.dpi
+ self._update_figure_dpi()
200
201
def _update_figure_dpi(self):
202
dpi = self._dpi_ratio * self.figure._original_dpi
0 commit comments