Re: [Matplotlib-users] show() problem in Mac OS X 10.5.8

2009-08-22 Thread Alan G Isaac
On 8/22/2009 2:42 AM Michiel de Hoon apparently wrote: > Does anybody know why the show._needmain stuff is needed in the show() > function in backend_tkagg.py?... > If I remove the show._needmain stuff ... > then the function still seems to work fine, and multiple show()s also works. Define "work

Re: [Matplotlib-users] show() problem in Mac OS X 10.5.8

2009-08-21 Thread Michiel de Hoon
if rcParams['tk.pythoninspect']: os.environ['PYTHONINSPECT'] = '1' Tk.mainloop() then the function still seems to work fine, and multiple show()s also works. --Michiel. --- On Thu, 8/20/09, Kim, Dae-Won wrote: > From: Kim, Dae-Won >

Re: [Matplotlib-users] show() problem in Mac OS X 10.5.8

2009-08-20 Thread Kim, Dae-Won
using. > > --Michiel. > > --- On Wed, 8/19/09, Kim, Dae-Won wrote: > > > From: Kim, Dae-Won > > Subject: Re: [Matplotlib-users] show() problem in Mac OS X 10.5.8 > > To: "Ryan May" > > Cc: matplotlib-users@lists.sourceforge.net > > Date: Wednesday,

Re: [Matplotlib-users] show() problem in Mac OS X 10.5.8

2009-08-20 Thread Michiel de Hoon
solution to get that working for the backend you are using. --Michiel. --- On Wed, 8/19/09, Kim, Dae-Won wrote: > From: Kim, Dae-Won > Subject: Re: [Matplotlib-users] show() problem in Mac OS X 10.5.8 > To: "Ryan May" > Cc: matplotlib-users@lists.sourceforge.net > D

Re: [Matplotlib-users] show() problem in Mac OS X 10.5.8

2009-08-19 Thread Kim, Dae-Won
The one 'preliminary' solution I found is using an interactive mode + raw_input. Here is and example, ion() plot([1,2,3,4,5]) raw_input('Type Enter') clf() plot([1,2,3,4,5]) raw_input('Type_Enter') clf() plot([1,2,3,4,5]) sho

Re: [Matplotlib-users] show() problem in Mac OS X 10.5.8

2009-08-19 Thread Kim, Dae-Won
On Wed, Aug 19, 2009 at 1:02 PM, Ryan May wrote: > On Wed, Aug 19, 2009 at 11:55 AM, coati wrote: > >> >> I have a problem with show() command in my macbook machine (Leopard >> 10.5.8). >> For example, if I run the script shown below >> (let assume it is saved as 'test.py', and I run a command

Re: [Matplotlib-users] show() problem in Mac OS X 10.5.8

2009-08-19 Thread Ryan May
On Wed, Aug 19, 2009 at 11:55 AM, coati wrote: > > I have a problem with show() command in my macbook machine (Leopard > 10.5.8). > For example, if I run the script shown below > (let assume it is saved as 'test.py', and I run a command 'python > test.py'), > > --

[Matplotlib-users] show() problem in Mac OS X 10.5.8

2009-08-19 Thread coati
I have a problem with show() command in my macbook machine (Leopard 10.5.8). For example, if I run the script shown below (let assume it is saved as 'test.py', and I run a command 'python test.py'), --- plot([1,2,3,4,5]) show() #first window plot([1,2,3,4,5]