Aaron R> wrote: > I have an app which adds data to a plot. Everything is working, but > when I add data to a plot that was zoomed in, it switches the display > to a zoomed out view.
> > def addData(self, xdata, ydata): > # Need to save off current zoom level before adding new plot data > # But don't know how Try this: self.axes.set_autoscale_on(False) Eric > self.axes.plot(xdata, ydata) > > # Restore view here, then redraw > self.canvas.draw() > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users