Thanks, John. That worked just fine for me. After posting, I realized PNG was my problem, but none of the other formats compatible with savefig are animate-able either, so I was at a loss.
Linda, I wasn't able to access your notebook. It would be great if there were a help document/tutorial dedicated solely to using Sage in conjunction with matplotlib(/scipy/numpy?), but I suppose that's a conversation for another thread. Perhaps I'll write it...after I figure it out. Or maybe I'll decide it's superfluous. On Saturday, January 19, 2013 1:36:21 PM UTC-6, John H Palmieri wrote: > > > > On Wednesday, January 16, 2013 9:41:14 PM UTC-8, David Morawski wrote: >> >> I'm having some troubles figuring out matplotlib from within Sage. I'm >> interested in doing some animations, so I started with the first >> example<http://matplotlib.org/examples/animation/animate_decay.html>on >> matplotlib.org. I downloaded the source >> code<http://matplotlib.org/examples/animation/animate_decay.py>for the >> example and ran the following: >> >> sage: load('animate_decay.py') >> sage: plt.savefig('blah.png') >> > > > Instead: > > sage: from animate_decay import * > sage: ani.save('blah.mp4') > > or > > sage: ani.save('blah.avi') > > (Can you store animations in png files?) > > -- > John > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support?hl=en.
