animated scatter plot

Hi,

I want to animate a scatter plot using the pylab interface. Something like this:
ion()
s=scatter(x,y,s,c)
for i in range (10):
#update data
s.draw()

s is a RegularPolyCollection and thuse does not have a set_data method.

How am I supposed to update the data so that I can modify the plot?

···


Flávio Codeço Coelho
registered Linux user # 386432
get counted at http://counter.li.org

“software gets slower faster than hardware gets faster”
Niklaus Wirth’s law