From: Steve C. <ste...@ya...> - 2005-11-16 08:52:38
|
> On Tue, 2005-11-15 at 20:30 -0800, > mat...@li... wrote: > > Hi, > > > > With matplotlib-0.84, pythonw embedding_in_qt.py > > returns several > > of these messages: > > ___ > > Traceback (most recent call last): > > File "embedding_in_qt.py", line 54, in sizeHint > > w, h = self.fig.get_width_height() > > AttributeError: Figure instance has no attribute > > 'get_width_height' > > ___ > > With matplotlib-0.82 the example works fine. > > Changelog shows > > 2005-06-18 Move Figure.get_width_height() to > > FigureCanvasBase and return > > int instead of float. - SC > > Is this a bug, or am I missing something? > > > > Thanks, > > > > Virgil The self.fig.get_width_height() should be self.get_width_height(). Changed in CVS. Steve Send instant messages to your online friends http://au.messenger.yahoo.com |