8000
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 2f6928f + ab1d4f4 commit 31a034bCopy full SHA for 31a034b
lib/matplotlib/backends/backend_wx.py
@@ -694,14 +694,14 @@ def _onSize(self, event):
694
# no change in size
695
return
696
self._width, self._height = size
697
- # Create a new, correctly sized bitmap
698
- self.bitmap = wx.Bitmap(self._width, self._height)
699
-
700
self._isDrawn = False
701
702
if self._width <= 1 or self._height <= 1:
703
return # Empty figure
704
+ # Create a new, correctly sized bitmap
+ self.bitmap = wx.Bitmap(self._width, self._height)
+
705
dpival = self.figure.dpi
706
winch = self._width / dpival
707
hinch = self._height / dpival
0 commit comments