AttributeError: Figure instance has no attribute 'get_width_height'

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

···

On Tue, 2005-11-15 at 20:30 -0800, > matplotlib-devel-request@lists.sourceforge.net 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