Thanks for the clarification. I'm really new to this, and do not know of interactive mode. I presume there's a command to turn it off and on, and possibly an example on how to do it. Is this method of operation with show() mentioned anywhere?
The unfortunate present use of show() is that it ties up the shell script, where I happened to have written program output. It's handy to put it there, since it's meant to be interactive. The user is keyboard arrowing through images, and statistical data is placed on the shell window. At the same time he sees a plot of data relevant to the image. He needs to close the plot window before going to the next image. I can probably figure out how to kill the plot window when he does that. My problem with using ipython is that the program I'm modifying is used with IDLE, and people have gotten to use it that way. I had nothing to do with that method of op. I doubt any of the users would be agreeable to using ipython. None of them know Python. The next time the program is released, I may provide it in executable form. I used matlab five years ago, for about two months. To see if it could help me understand MPL, I fired it up, and it's now working. Perhaps the interactive op is explained there. I take it there is no show() there? Interesting mention of "non-blocking". In the midst of this dilemma, I started getting socket errors. Using McAffe I found pythonw as blocked. Would that be in anyway associated with the use of show()? I've since changed it to outbound blocking. On 2/9/2010 8:18 AM, John Hunter wrote: > On Tue, Feb 9, 2010 at 10:06 AM, Wayne Watson > <sierra_mtnv...@sbcglobal.net> wrote: > ... >> the last line. >> > "show" is meant to start the GUI mainloop, which is usually blocking, > and raise all windows, so the behavior you are reporting is the > intended behavior. When working interactively, as in Idle, you > shouldn't need to use show if you turn interactive mode on. > > http://matplotlib.sourceforge.net/users/shell.html > > We recommend using ipython in pylab model when working interactively > because it is designed to make the correct interactive settings and > override "show" to be non-blocking. You can obtain the right results > in matplotlib using Idle if you are careful, but for "just works out > of the box" ipython in pylab mode will be easier. > > JDH > > -- "Crime is way down. War is declining. And that's far from the good news." -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users