473,406 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 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 2648
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Manjesh Gowda | last post by:
Hi all, I am maintaing a persistent HTTP connection using the "HTTP CONNECT" method , this works fine for many proxies like Squid, ISA , etc. But the iPlanet proxy disconnects the conneciton...
2
by: DartmanX | last post by:
I have an application that uses the Google Maps API to display customized maps via a generated XML file. The XML is generated via a "Wizard" system to determine what the XML holds. I am looking...
19
by: Lauren Wilson | last post by:
A2K app: Question: is the flagged line (<<<) below necessary. If that line is needed, what effect does it have (if any) on the fact that the very same database is the linked back end db? ...
2
by: ~dr-sci-fi | last post by:
hi all, i want to use "Windows Picture Viewer and Fax Viewer" in my c# app to manipulate images, picture viewer is found as a DLL (shimgvw.dll) in System32 folder of WinXP. can some one tell...
6
by: Martijn Coppoolse | last post by:
Hello everyone, I've got two little apps which are able to create a window that displays something on the desktop, but are not clickable. Instead, when you click on the window, the item...
9
by: Anubhav Jain | last post by:
Hi, I am having few .net source files(.cs or .vb) and I want to dynamically generate the corresponding .net project file(.csproj or .vbproj) for them without using visual studio.So that I could...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
3
by: Arnost Sobota | last post by:
Dear ASP community, I have a question regarding ASP session variables. My assumption was that a session variable has the same lifetime as the session itself: as a consequence, given that...
5
by: -Lost | last post by:
See, in ActionScript (Flash) I was able to do it this way: frame 1 { this.onEnterFrame = function () { if (buttonIsDown) { i += 1; duplicateMovieClip(_root.layer.target, 'variable_name' + i,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.