I am creating a script that generates images and displays them to the screen
in real time.  I created the following simple script:

__________________________

#!/usr/bin/env python

from pylab import *
from scipy import *

for k in range(1,10000):
    img = standard_normal((40,40))
    imshow(img,interpolation=None,animated=True,label="blah")
    clf()
    show()

__________________________

Now,  this script plots the image too slowly.  I am forced to use the clf()
function so that it doesn't slow down at each iteration of the for loop.  Is
there a way that I can plot this simple image faster?  What's the best way
to get imshow() to plot quickly?  Thanks for your help.

-Joey
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to