On Mon, Jan 9, 2012 at 5:28 AM,  <keith.bri...@bt.com> wrote:
> I just installed matplotlib 1.1.0.   When I try the animation examples from 
> http://matplotlib.sourceforge.net/examples/animation/index.html, they just 
> flash up a window for a fraction of a second, and then terminate with no 
> message (animate_decay.py, strip_chart_demo.py, etc).    Is this what they 
> are supposed to do?    The documentation at 
> http://matplotlib.sourceforge.net/api/animation_api.html is very terse.    
> When I include the line
>
> im_ani.save('im.mp4')
>
> in animate_basic_example.py, I get this crash:
>
> kbriggs@gold:~> python animate_basic_example.py
>
> Traceback (most recent call last):
>  File "animate_basic_example.py", line 32, in <module>
>    im_ani.save('im.mp4')
>  File "/usr/local/lib/python2.7/site-packages/matplotlib/animation.py", line 
> 127, in save
>    self._make_movie(filename, fps, codec, frame_prefix)
>  File "/usr/local/lib/python2.7/site-packages/matplotlib/animation.py", line 
> 164, in _make_movie
>    stdout=PIPE, stderr=PIPE)
>  File "/usr/local/lib/python2.7/subprocess.py", line 679, in __init__
>    errread, errwrite)
>  File "/usr/local/lib/python2.7/subprocess.py", line 1228, in _execute_child
>    raise child_exception
> OSError: [Errno 2] No such file or directory

Saving generally requires ffmpeg. You could try installing that or
commenting out the call to save().

Given that saving is half-baked at this point, a good maintainer of
this code *cough*me*cough* would probably make a problem saving not
completely crap out the script.

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to