Skip to content

Commit cd901c6

Browse files
committed
Fix bug where the wx window can not be sized down from its initial size.
1 parent d664879 commit cd901c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/backends/backend_wx.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,6 +1473,8 @@ def __init__(self, num, fig):
14731473
self.SetSizer(self.sizer)
14741474
self.Fit()
14751475

1476+
self.canvas.SetMinSize((2, 2))
1477+
14761478
self.figmgr = FigureManagerWx(self.canvas, num, self)
14771479

14781480
bind(self, wx.EVT_CLOSE, self._onClose)

0 commit comments

Comments
 (0)