Skip to content

Commit eda659a

Browse files
committed
Fix bug where Wx figures were getting shortened by the height of the status bar (Thanks, Gary Ruben)
svn path=/branches/v0_91_maint/; revision=4997
1 parent d0c4100 commit eda659a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_wx.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1291,9 +1291,9 @@ def __init__(self, num, fig):
12911291
DEBUG_MSG("__init__()", 1, self)
12921292
self.num = num
12931293

1294-
self.canvas = self.get_canvas(fig)
12951294
statbar = StatusBarWx(self)
12961295
self.SetStatusBar(statbar)
1296+
self.canvas = self.get_canvas(fig)
12971297
self.sizer =wx.BoxSizer(wx.VERTICAL)
12981298
self.sizer.Add(self.canvas, 1, wx.TOP | wx.LEFT | wx.EXPAND)
12991299
# By adding toolbar in sizer, we are able to put it at the bottom

0 commit comments

Comments
 (0)