Re: [Matplotlib-users] Animation module: every loop takes more and more time

2013-05-29 Thread zetah
Benjamin Root wrote: >The init() function only happens once. So, each call to >ax.contourf() just >simply adds more contours on top of the previous (you just don't >see them >because you don't have masked regions or transparency). I would >suggest >doing an ax.cla() in the animate() function b

Re: [Matplotlib-users] Animation module: every loop takes more and more time

2013-05-29 Thread Benjamin Root
On Wed, May 29, 2013 at 3:03 PM, zetah wrote: > Please consider this small script: > > The init() function only happens once. So, each call to ax.contourf() just simply adds more contours on top of the previous (you just don't see them because you don't have masked regions or transparency). I w

[Matplotlib-users] Animation module: every loop takes more and more time

2013-05-29 Thread zetah
Please consider this small script: import numpy as np import matplotlib.pyplot as plt from matplotlib import animation from time import time def init(): return ax.cla() def animate(i): global t r = np.random.random(10)

Re: [Matplotlib-users] Animation module

2012-02-20 Thread Allen Hathaway
Worked like a charm. Thanks. Allen From: ben.v.r...@gmail.com [mailto:ben.v.r...@gmail.com] On Behalf Of Benjamin Root Sent: Monday, February 20, 2012 3:21 PM To: Allen Hathaway Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] Animation module On Mon, Feb

Re: [Matplotlib-users] Animation module

2012-02-20 Thread Benjamin Root
On Mon, Feb 20, 2012 at 12:32 PM, Allen Hathaway wrote: > I downloaded the Windows installer and installed matplotlib. I tried to > run one of the examples from the examples directory – animate_decay – and > got the following error: > > ** ** > > Traceback (most recent call last): > > F

[Matplotlib-users] Animation module

2012-02-20 Thread Allen Hathaway
I downloaded the Windows installer and installed matplotlib. I tried to run one of the examples from the examples directory - animate_decay - and got the following error: Traceback (most recent call last): File "C:\Bin\Python Scripts\plot_decay.py", line 3, in import matplotlib.animat

Re: [Matplotlib-users] Animation module

2011-11-03 Thread Benjamin Root
On Thu, Nov 3, 2011 at 12:51 PM, Stuart Mumford wrote: > Hello, > > I discovered the (wonderful) animation module in the v1.1 release today. > > However I think I may have quickly outgrown it a bit! > > I am plotting some simulation data see: > http://dl.dropbox.com/u/2796140/mhdmodes_3.mp4 for an

[Matplotlib-users] Animation module

2011-11-03 Thread Stuart Mumford
Hello, I discovered the (wonderful) animation module in the v1.1 release today. However I think I may have quickly outgrown it a bit! I am plotting some simulation data see: http://dl.dropbox.com/u/2796140/mhdmodes_3.mp4 for an example made with the animation class. There is one thing missing f