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)