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 e8c7579 commit ab1d4f4Copy full SHA for ab1d4f4
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