On 10/7/2008 6:23 PM Michael apparently wrote: > loop through the data and call clf():
The clf call seems quite wrong: it flashes horribly and I get good behavior without it (once I add a call to sleep). What am I missing? Alan Isaac PS The following almost works (i.e., works, but then exits with an error). import matplotlib.pyplot as plt from time import sleep from numpy import zeros plt.ion() plt.hold(False) data = list() slices = list() for i in range(5): frame = zeros( (200,200) ) frame[20:40,10*i:10*i+20] = 255 data.append(frame) fig1 = plt.figure(1) ax1 = fig1.gca() for frame in data: plt.imshow(frame, axes=ax1, animated=True) sleep(0.2) ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users