Sorry for the delay in responding.
This worked perfectly! Thanks so much for the time saver.
On Thu, Feb 26, 2009 at 12:28 PM, Eric Firing <efiring@...> wrote:
> 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.plot(xdata, ydata)
>> # Restore view here, then redraw