On Wed, Jan 21, 2009 at 21:09, John Hunter <jdh2...@gmail.com> 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users