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 autoscaling infrastructure is not triggered when you manually set the line data, only when you add a line to the Axes, eg when you call "plot". You will need to either manually track this yourself and call "ax.set_ylim:" to set the ylimits manually, or resuse the matplotlib datalimits/autoscaling infrastructure. 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. JDH ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users