From: Christian M. <mee...@un...> - 2005-05-28 11:24:14
|
Hi, Thanks John and Ken for your detailed replies. They came almost immediately, but since I'm 6-7 hours ahead of you and the weekend was approaching this answer took a bit longer ... Anyway, now everything is working - finally I've got it. In contrast to your advise, John, I rather don't change the rc-file, for this not such a good idea if one wants to distribute the software at some point among colleagues. May I still add a different question? As you know I'm using the WXAgg backend (at least in some of my scripts) and embedded essentially everything like in the example scripts: class SAXS_wx(wx.Frame): def __init__(self,parent,id,title): wx.Frame.__init__(self,None,-1,"SPlot") <snip> self.fig = Figure(figsize=(5,4),dpi=100) self.axes = self.fig.add_subplot(111) self.canvas = FigureCanvas(self, -1, self.fig) self.parent = self.canvas.GetParent() self.canvas.mpl_connect('motion_notify_event',self.mouse_move) sizer = wx.BoxSizer(wx.VERTICAL) self.sizer = sizer sizer.Add(self.canvas, 1, wx.LEFT|wx.TOP|wx.GROW|wx.EXPAND) self.add_splot_toolbar() self.SetSizer(self.sizer) self.Fit() Now, changing the figsize parameter has absolutely no effect on the canvas size whatsoever. Does anybody know how to change the figure size? Currently I only get a beautifully, tiny window every user needs to expand by hand ... Once more for the record: I'm stuck with matplotlib 0.71 on Panther (OS X 10.3) with Apple's framework Python 2.3 for a while. Thanks, Christian |