pyplot.show() without stopping script execution?

Hi,

I am writing a script that uses pyplot.show() to show a plot, on which
the user has to ponder and decide a course of action (telling the script
what to do on a raw_input).

I would be happy if the pyplot window does not "freeze" python below,
i.e. if the window can somehow exist while the python script continues
to work. Now if I want the script to continue, I have to close the
window. I didn't find examples on how to manage this. Any hint on where
to read?

Thanks,
Massimo

This is not how `show` is used. But
you could save the plot as a temporary file
and open it in a viewer. Or build a GUI
for the user to interact with:
http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_tk.html

Alan Isaac

ยทยทยท

On 6/30/2009 5:42 PM ms apparently wrote:

I am writing a script that uses pyplot.show() to show a plot, on which
the user has to ponder and decide a course of action (telling the script
what to do on a raw_input).