Re: [Matplotlib-users] autoscale when adding data to a Line2D?

2010-09-27 Thread Russell E. Owen
In article <4ca0549d.3060...@hawaii.edu>, Eric Firing wrote: > On 09/26/2010 09:43 PM, Fernando Perez wrote: > > Mmh, > > > > On Sun, Sep 26, 2010 at 10:56 PM, Jae-Joon > > Lee wrote: > >> > >> Did you try autoscale_view method? > >> > >> http://matplotlib.sourceforge.net/api/axes_api.html?hig

Re: [Matplotlib-users] autoscale when adding data to a Line2D?

2010-09-27 Thread Fernando Perez
On Mon, Sep 27, 2010 at 1:23 AM, Eric Firing wrote: > You can do this using Axes.relim() > prior to calling autoscale_view(). > Aha! That's the call I missed, thanks a bunch. Perhaps a note indicating that in the autoscale_view docstring wouldn't hurt, because as it reads now I think the confus

Re: [Matplotlib-users] autoscale when adding data to a Line2D?

2010-09-27 Thread Eric Firing
On 09/26/2010 09:43 PM, Fernando Perez wrote: > Mmh, > > On Sun, Sep 26, 2010 at 10:56 PM, Jae-Joon Lee wrote: >> >> Did you try autoscale_view method? >> >> http://matplotlib.sourceforge.net/api/axes_api.html?highlight=autoscale#matplotlib.axes.Axes.autoscale_view >> >> Please post a sample scrip

Re: [Matplotlib-users] autoscale when adding data to a Line2D?

2010-09-27 Thread Fernando Perez
Mmh, On Sun, Sep 26, 2010 at 10:56 PM, Jae-Joon Lee wrote: > > Did you try autoscale_view method? > > http://matplotlib.sourceforge.net/api/axes_api.html?highlight=autoscale#matplotlib.axes.Axes.autoscale_view > > Please post a sample script that reproduces the problem. > I'm wondering if I'm do

Re: [Matplotlib-users] autoscale when adding data to a Line2D?

2010-09-26 Thread Jae-Joon Lee
On Sat, Sep 25, 2010 at 8:15 AM, Russell E. Owen wrote: > Perhaps I should keep track of the y limits myself. That saves time when > adding a new data point because I can compare it to cached limits > (instead of scanning the whole data set). But it quickly gets messy if > one handles nan correctl

[Matplotlib-users] autoscale when adding data to a Line2D?

2010-09-24 Thread Russell E. Owen
I'm implementing a strip chart class by setting the data in a Line2D (well, one or more Line2D instances tied to one or more Subplots). However, I find that when I do this I can't get the y axis to autoscale, even if I create the Line2Ds with animate=False. Am I overlooking something really bas