471,078 Members | 812 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,078 software developers and data experts.

"persistent" plot windows

Hi all,

I'm trying to write a python script using plotting form pylab.
Unfortunatelly I've encountered a problem. When I run the script via
'python myscript.py' the plot windows open and close very quickly, or
when I added the show() command the shell window was locked until I
closed the figures.

My question is: is there a way to open those windows in the background
without blocking the shell and without running it interactively??
something like gnuplot -persist?

Thanks all,
Rodrigo Lopez-Negrete

Mar 24 '07 #1
2 2556
Rodrigo Lopez-Negrete wrote:
Hi all,

I'm trying to write a python script using plotting form pylab.
Unfortunatelly I've encountered a problem. When I run the script via
'python myscript.py' the plot windows open and close very quickly, or
when I added the show() command the shell window was locked until I
closed the figures.

My question is: is there a way to open those windows in the background
without blocking the shell and without running it interactively??
something like gnuplot -persist?

Thanks all,
Rodrigo Lopez-Negrete
python whatever.py &
(Don't forget the ampersand!)

James
Mar 25 '07 #2
Hi James,

Thanks for the answer, the ampersand only works if I use the show()
command at the end of my script. I guess that helps although I haven't
tested it with plotting subroutines.

cheers,
Rodrigo

On Mar 24, 6:50 pm, James Stroud <jstr...@mbi.ucla.eduwrote:
Rodrigo Lopez-Negrete wrote:
Hi all,
I'm trying to write a python script using plotting form pylab.
Unfortunatelly I've encountered a problem. When I run the script via
'python myscript.py' the plot windows open and close very quickly, or
when I added the show() command the shell window was locked until I
closed the figures.
My question is: is there a way to open those windows in the background
without blocking the shell and without running it interactively??
something like gnuplot -persist?
Thanks all,
Rodrigo Lopez-Negrete

python whatever.py &

(Don't forget the ampersand!)

James

Mar 25 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by DartmanX | last post: by
19 posts views Thread by Lauren Wilson | last post: by
6 posts views Thread by Martijn Coppoolse | last post: by
3 posts views Thread by Arnost Sobota | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.