SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: ms <dev...@gm...> - 2009年06月30日 21:37:08
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
From: Alan G I. <ala...@gm...> - 2009年06月30日 22:21:40
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).
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
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /