multiple lines, multiple plots, single figure

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 <tom.denniston@…660…> 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 < > anderbubble@…287…> 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

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 <anderbubble@...287...> 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 > <tom.denniston@...660...> 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 < anderbubble@...287...> 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

Hi Folks,

I was wondering how to set the Matplotlib classic Toolbar in order to display only existent data when the back/forward arrows are clicked (i.e, the pan feature) for a subplot that displays plotted data.

How to set the code in the matplotlib toolbar to only display the data from the file? ( clicking the left arrow when the left most point is at the start of the data file should result in freezing of the plot and a similar action when the right arrow is clicked when the right most point is at the end of the data file).

I’m not sure if my post was sufficiently as clear as spring water. Any suggestions would be greatly appreciated.

Great forum, by the way…

Thanks.
-Maser

···

Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.

Hi folks,

reposting… has anyone a clue that might help in the right direction??

was my question too hard or would it help better if I rephrased it ?

thanks so much

maser
maser rati <maseriyer@…9…> wrote:

···

Hi Folks,

I was wondering how to set the Matplotlib classic Toolbar in order to display only existent data when the back/forward arrows are clicked (i.e, the pan feature) for a subplot that displays plotted data.

How to set the code in the matplotlib toolbar to only display the data from the file? ( clicking the left arrow when the left most point is at the start of the data file should result in freezing of the plot and a similar action when the right arrow is clicked when the right most point is at the end of the data file).

I’m not sure if my post was
sufficiently as clear as spring water. Any suggestions would be greatly appreciated.

Great forum, by the way…

Thanks.
-Maser


Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.-------------------------------------------------------------------------
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


Access over 1 million songs - Yahoo! Music Unlimited.

Hi folks,

reposting… has anyone a clue that might help in the right direction??

was my question too hard or would it help better if I rephrased it ?

thanks so much

maser

···

maser rati <maseriyer@…9…> wrote:

Hi Folks,

I was wondering how to set the Matplotlib classic Toolbar in order to display only existent data when the back/forward arrows are clicked (i.e, the pan feature) for a subplot that displays plotted data.

How to set the code in the matplotlib toolbar to only display the data from the file? ( clicking the left arrow when the left most point is at the start of the data file should result in freezing of the plot and a similar action when the right
arrow is clicked when the right most point is at the end of the data file).

I’m not sure if my post was sufficiently as clear as spring water. Any suggestions would be greatly appreciated.

Great forum, by the way…

Thanks.
-Maser


Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.-------------------------------------------------------------------------
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


Access over 1 million songs - Yahoo! Music Unlimited.-------------------------------------------------------------------------
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


Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.