Hello,

I was wondering why the following animation doesn't work. I thought it did work before, but perhaps I am misremembering. I am on OS X 10.4, matplotlib version 0.99.0 from the enthought distribution. I must be thinking about this wrong someone, but I thought that if you did a plot, then updated the data on the plot object, and called draw that it would actually draw it (like it does in matlab). right now it just gives me a blank figure, with a busy mouse icon, and then shows the last plot done.

thanks,

                        Brian Blais



import numpy

import matplotlib.pyplot as plt
h,=plt.plot([1,2,3])
plt.ylabel('some numbers')
plt.show()

for i in range(100):

    h.set_ydata(numpy.random.rand(3)*2+1)
    plt.draw()





--
Brian Blais
bbl...@bryant.edu
http://web.bryant.edu/~bblais



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to