From: Jochen Voss <voss@se...>  20060522 15:11:42

Hello, I am trying to generate a short movie using matplotlib. The core of my code looks like for i in range(1,len(t)): U0,U1x,U1y,H1 =3D list(sig[i,:]) for x in arange(0,1.001,0.05): for y in arange(0,1.001,0.05): xx,yy=3Dtrace(U0,U1x,U1y,H1,x,y) ts[(x,y)].set_data(xx,yy) for j in range(0,nobs): tr[j].center =3D (obs[i,2*j],obs[i,2*j+1]) savefig("f%04d.png"%i) where the entries of the dictionary 'ts' are lines and the entries of the dictionary 'tr' a patches (circles). Moving the lines around with set_data works quite fine, but moving the patches by setting 'center' does not. My question: how do I move a patch? Many thanks, Jochen =20 http://seehuhn.de/ 