if you're building an app i would suggest using the OO interface.
There are good examples in the examples directory.  But basically you
get a figure either by constructing it or using pylab.gcf and you can
add_axes to the figure and plot on them.  It is much more scalable for
an app than the pylab interface.

as for your original question, i'm afraid i've never seen the behavior
before and don't have a good answer.

--Tom


On 1/19/07, Jonathon Anderson <[EMAIL PROTECTED]> wrote:
> It's definitely not the behavior I'm seeing here. In my matploblibrc file,
> hold is set to True. Is there another value that might be influencing this?
>
> In any case, I don't want the behavior to be dependent on a config file: I'm
> building an application. Do you know how I might specify this behavior at
> run-time?
>
> ~jonathon
>
>
> On 1/19/07, Tom Denniston
> <[EMAIL PROTECTED]> wrote:
> > It might depend on what's in your matplotlib rc file but by default
> > the behavior I have always seen was each plot command adds to the
> > current figure (pylab.gcf()) until you do a pylab.clf().
> >
> > So the two commands lists you have below end up being functionally
> equivalent.
> >
> > --Tom
> >
> > On 1/19/07, Jonathon Anderson < [EMAIL PROTECTED]> wrote:
> > > I have several lines of data that I want to plot on the same graph, but
> > > every time I run the pylab.plot() function it redraws the graph from
> > > nothing. I've tried pylab.plot(*, hold=True) and pylab.hold(True), but
> it
> > > still happens. Can I add data to an existing figure, or do I have to
> pass
> > > all the data at once?
> > >
> > > e.g., Do I have to do this:
> > >
> > > pylab.plot(x1, y1, x2, y2, x3, y3, ...)
> > >
> > > or can I do this:
> > >
> > > pylab.plot(x1, y1)
> > > pylab.plot(x2, y2)
> > > pylab.plot(x3, y3)
> > > ...
> > >
> > > ~jonathon anderson
> > >
> > >
> -------------------------------------------------------------------------
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > > opinions on IT & business topics through brief surveys - and earn cash
> > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >
> > > _______________________________________________
> > > Matplotlib-users mailing list
> > > Matplotlib-users@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> > >
> > >
> > >
> >
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to