Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Adam Mercer <ramercer@gm...> - 2009-01-22 04:06:26
|
On Wed, Jan 21, 2009 at 21:09, John Hunter <jdh2358@...> wrote: > This looks like a simple bug in which FigureCanvasBase is not > imported. Try replacing line 31 in > matplotlib/backends/backend_cocoaagg.py with this:: > > from matplotlib.backend_bases import FigureManagerBase, FigureCanvasBase > > I've fixed the bug on the svn branch and trunk. Thanks, that fixes the backtrace. > In a somewhat unrelated note, this style of "pylab animation" is no > longer encouraged or supported (and your example does not work with > cocoaagg, even with the fix, on my osx box). Rather, you should use > the GUI timeout or idle loop for your backend to support animation, as > in the examples in > http://matplotlib.sourceforge.net/examples/animation/index.html. > While there are no cocoa specific examples (feel free to contribute > one) the pattern should be fairly clear across the UIs we have > examples for. Thanks, I'll pass that onto the user who reported this problem to me. Cheers Adam |