From: darkside <in....@gm...> - 2007-02-28 21:47:17
|
Hello, 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() > pylab.ion() > pylab.subplot(211) > line,=pylab.plot(x[0],x[1]) > pylab.draw() > pylab.ylabel('Posiciones') > for k in pylab.arange(Nt): > x, y = evol.plot_step() > line.set_ydata(x[1]) > pylab.draw() > > > pylab.subplot(212) > line,=pylab.plot(y[0],y[1]) > pylab.draw() > pylab.ylabel('Momentos') > > for k in pylab.arange(Nt): > x, y = evol.plot_step() > line.set_ydata(y[1]) > 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. > > Any idea? > |