I’m new in matplotlib, but I have became a fat!
First of all, I have to apologize for my bad English, I hope you can understand what I mean.
Making some programs I have found the same problem:
-What I want? I want to plot two sets of changing data using the same windows.
-The problem? My code is:
x,y = evol.plot_init()
for k in pylab.arange(Nt):
x, y = evol.plot_step()
pylab.subplot(212) line,=pylab.plot(y,y) pylab.draw() pylab.ylabel('Momentos') for k in pylab.arange(Nt): x, y = evol.plot_step() line.set_ydata(y) pylab.draw()
And if you run this, one draw and anim is done first, you have to wait
it to stop, and then you can see the other want.
The thing is that I want that the two anim figures runs at the same time.