matplotlib and interactive use

Hello,

I am currently writing a data reduction program. I want to use pylab in
a script and use interactive input of pylab. The problem is that in
ipython -pylab the script just keeps going without waiting for input (I
have just tested it by plotting something but did not do
cid=connect....). In ipython I also have the trouble that the first time
I call show the shell waits until the window is closed.

Well to simplify my question: How do I decide if pylab just shows the
plot or if it waits for input in a script?

thanks
    Wolfgang

Did you try
   raw_input("hit enter")
?

···

On 8/21/07, Wolfgang Kerzendorf <wkerzendorf@...982...> wrote:

Hello,

I am currently writing a data reduction program. I want to use pylab in
a script and use interactive input of pylab. The problem is that in
ipython -pylab the script just keeps going without waiting for input (I
have just tested it by plotting something but did not do
cid=connect....). In ipython I also have the trouble that the first time
I call show the shell waits until the window is closed.

Well to simplify my question: How do I decide if pylab just shows the
plot or if it waits for input in a script?

thanks
    Wolfgang

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

That server sounds like a good idea. At the moment I have a different problem:
If I close the window sometimes the script does not continue. Is there any function that I can call which closes pylab and continues with the script?
Also, how can I halt the script after the first issue of show().
thanks in advance
   Wolfgang
Bill Baxter wrote:

···

Did you try
   raw_input("hit enter")
?

On 8/21/07, Wolfgang Kerzendorf <wkerzendorf@...982...> wrote:
  

Hello,

I am currently writing a data reduction program. I want to use pylab in
a script and use interactive input of pylab. The problem is that in
ipython -pylab the script just keeps going without waiting for input (I
have just tested it by plotting something but did not do
cid=connect....). In ipython I also have the trouble that the first time
I call show the shell waits until the window is closed.

Well to simplify my question: How do I decide if pylab just shows the
plot or if it waits for input in a script?

thanks
    Wolfgang

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users