From: Adam M. <ram...@gm...> - 2009-01-22 04:06:26
|
On Wed, Jan 21, 2009 at 21:09, John Hunter <jd...@gm...> 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 |