Anyone?

Cheers

Adam

On Sat, Jan 17, 2009 at 17:19, Adam Mercer <ramer...@gmail.com> wrote:
> Hi
>
> I'm trying to track down an issue with the CocoaAgg backend on Mac OS
> X using MacPorts, when run with the CocoaAgg backend the following
> code:
>
> from pylab import *
> import time
>
> ion()
>
> tstart = time.time()
> x = arange(0,2*pi,0.01)
> line, = plot(x,sin(x))
> for i in arange(1,200):
>    line.set_ydata(sin(x+i/10.0))
>    draw()
>
> print 'FPS:' , 200/(time.time()-tstart)
>
> fails with the backtrace:
>
> $ python temp.py -dCocoaAgg
> Traceback (most recent call last):
>  File "temp.py", line 2, in <module>
>    from pylab import *
>  File "/opt/local/lib/python2.5/site-packages/pylab.py", line 1, in <module>
>    from matplotlib.pylab import *
>  File "/opt/local/lib/python2.5/site-packages/matplotlib/pylab.py",
> line 253, in <module>
>    from matplotlib.pyplot import *
>  File "/opt/local/lib/python2.5/site-packages/matplotlib/pyplot.py",
> line 75, in <module>
>    new_figure_manager, draw_if_interactive, show = pylab_setup()
>  File 
> "/opt/local/lib/python2.5/site-packages/matplotlib/backends/__init__.py",
> line 25, in pylab_setup
>    globals(),locals(),[backend_name])
>  File 
> "/opt/local/lib/python2.5/site-packages/matplotlib/backends/backend_cocoaagg.py",
> line 54, in <module>
>    class FigureCanvasCocoaAgg(FigureCanvasAgg):
>  File 
> "/opt/local/lib/python2.5/site-packages/matplotlib/backends/backend_cocoaagg.py",
> line 63, in FigureCanvasCocoaAgg
>    start_event_loop.__doc__=FigureCanvasBase.start_event_loop_default.__doc__
> NameError: name 'FigureCanvasBase' is not defined
>
> However this runs without issue using the MacOSX backend:
>
> $ python temp.py -dMacOSX
> FPS: 20.1183278689
>
> Is there some missing dependency that could cause this?
>
> 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

Reply via email to