spawning plots as separate processes

Hi All,

I am very new to matplotlib and still trying to find my way through docs and api, so please excuse me if there is a simple way to do this.

So the situation is this - I would like to write a script that spawns multiple plots and exits, but the plots window do not die until they are explicitly closed.

Is there a simple way to do this. All the examples that I have looked at so far have scripts that only exit once the call to show() returns. Is there some mechanism that
matplotlib provides to make the show() return? I am of course using the pylab interface now, but I can start using the core matplotlib api if need. Thanks in advance for your time.

Regards,
-ss

I'm not sure what you're after exactly, but your design needs may be
solved by calling pylab.ion(True).
If not the ezplot library that I wrote may do it for you.
   http://www.python.org/pypi/ezplot/0.1.0a3

--bb

···

On 6/13/07, signal seeker <seekersignal@...287...> wrote:

Hi All,

I am very new to matplotlib and still trying to find my way through docs and
api, so please excuse me if there is a simple way to do this.

So the situation is this - I would like to write a script that spawns
multiple plots and exits, but the plots window do not die
until they are explicitly closed.
Is there a simple way to do this. All the examples that
I have looked at so far have scripts that
only exit once the call to show() returns.
Is there some mechanism that
matplotlib provides to make the show() return? I am of course using the
pylab interface now, but I can start using the core matplotlib api if need.
Thanks in advance for your time.

Regards,
-ss

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Bill,

Thanks for your reply. pylab(ion) is not what I meant. Consider this simply script -

simple.py

from pylab import *
plot([1,2,3])
show()

Now, if I do python simple.py on a cmd prompt, this will open up a plot window, but the script won’t return until the plot window is closed.

I would like simple.py process to end but the plot window to be still up. I have users who would like to type one command after another and not have to close any of the plot windows created.

I looked at ezplot, but it looks like a rather heavy weight soln, but maybe I need to do something similar. Is there any other way around this?

Thanks,
ss

···

On 6/12/07, Bill Baxter <wbaxter@…287…> wrote:

I’m not sure what you’re after exactly, but your design needs may be
solved by calling pylab.ion(True).
If not the ezplot library that I wrote may do it for you.

http://www.python.org/pypi/ezplot/0.1.0a3

–bb

On 6/13/07, signal seeker <seekersignal@…287…> wrote:

Hi All,

I am very new to matplotlib and still trying to find my way through docs and

api, so please excuse me if there is a simple way to do this.

So the situation is this - I would like to write a script that spawns
multiple plots and exits, but the plots window do not die

until they are explicitly closed.
Is there a simple way to do this. All the examples that
I have looked at so far have scripts that
only exit once the call to show() returns.
Is there some mechanism that

matplotlib provides to make the show() return? I am of course using the
pylab interface now, but I can start using the core matplotlib api if need.
Thanks in advance for your time.

Regards,

-ss


This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take

control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/


Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users