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 2f4a3e3 + 2046cde commit 723d216Copy full SHA for 723d216
lib/matplotlib/backends/backend_wx.py
@@ -776,14 +776,14 @@ def _onSize(self, evt):
776
# no change in size
777
return
778
self._width, self._height = size
779
- # Create a new, correctly sized bitmap
780
- self.bitmap = wx.Bitmap(self._width, self._height)
781
-
782
self._isDrawn = False
783
784
if self._width <= 1 or self._height <= 1:
785
return # Empty figure
786
+ # Create a new, correctly sized bitmap
+ self.bitmap = wx.Bitmap(self._width, self._height)
+
787
dpival = self.figure.dpi
788
winch = self._width / dpival
789
hinch = self._height / dpival
0 commit comments