Re: [Matplotlib-users] Axis limits for dynamic plot.

2008-10-08 Thread Venkat Ramanan
John Hunter wrote: > Unfortunatelym the API for the > latter has changed somewhat from 0.91 to 0.98, so I hesitate to tell > advise you to do this with 0.91 since it will break when you upgrade. > Please let me know the instructions as if the version is 0.98. I'll upgrade to it soon. Thanks, V

Re: [Matplotlib-users] Axis limits for dynamic plot.

2008-10-08 Thread John Hunter
On Wed, Oct 8, 2008 at 12:23 PM, Venkat Ramanan <[EMAIL PROTECTED]> wrote: > for i in p.arange(1,nframes): >A=2*p.sin(2*p.pi*(1/float(2*nframes))*i) >sindata=A*p.sin(x) >line.set_ydata(sindata) # update the data >p.draw() # redraw the canvas The autoscalin