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
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
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)
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
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
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
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
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