我的代码是:
myimages=[]
xvalues, yvalues =np.meshgrid(arange(-8, 8, 1), arange(-8, 8, 1))
xdot=yvalues
fig1=plt.figure()
for i in range(np.size(t,0)):
ydot=-alpha*yvalues-np.sin(xvalues)+I*sin(2*t[i])
imgplot=plt.streamplot(xvalues, yvalues, xdot, ydot)
myimages.append(imgplot)
my_anim = ArtistAnimation(fig1, myimages, interval=100, blit=False,
repeat_delay=100)
plt.show()
我在这里要做的是为相位potrait设置动画。但是每次“ TypeError:'StreamplotSet'对象不可迭代”时,都会出现错误消息。请帮我。预先感谢