Re: [Matplotlib-users] Mac OSX backend

2010-11-13 Thread Michiel de Hoon
. But are there still any such cases with the current organization of the drawing code in matplotlib? Thanks, --Michiel. --- On Fri, 11/12/10, John Hunter jdh2...@gmail.com wrote: From: John Hunter jdh2...@gmail.com Subject: Re: [Matplotlib-users] Mac OSX backend To: Michiel de Hoon mjldeh...@yahoo.com

Re: [Matplotlib-users] Mac OSX backend

2010-11-13 Thread John Hunter
On Sat, Nov 13, 2010 at 7:46 AM, Michiel de Hoon mjldeh...@yahoo.com wrote: OK, thanks. With your example, I see a difference between the Mac OS X backend and the TKAgg/GtkAgg backend but only if interactive is False in matplotlibrc. If interactive is True, both the Mac OS X backend and the

Re: [Matplotlib-users] Mac OSX backend

2010-11-13 Thread Michiel de Hoon
, --Michiel. --- On Sat, 11/13/10, John Hunter jdh2...@gmail.com wrote: From: John Hunter jdh2...@gmail.com Subject: Re: [Matplotlib-users] Mac OSX backend To: Michiel de Hoon mjldeh...@yahoo.com Cc: mdekauwe mdeka...@gmail.com, matplotlib-users@lists.sourceforge.net Date: Saturday, November 13, 2010

Re: [Matplotlib-users] Mac OSX backend

2010-11-13 Thread John Hunter
On Sat, Nov 13, 2010 at 9:23 AM, Michiel de Hoon mjldeh...@yahoo.com wrote: Thanks for your reply. But nowadays drawing is done through draw_idle, so we don't trigger additional drawing even if interactive is True. In your example, if run as a script, there is no drawing until a call to

Re: [Matplotlib-users] Mac OSX backend

2010-11-13 Thread Michiel de Hoon
--- On Sat, 11/13/10, John Hunter jdh2...@gmail.com wrote: Ie if we have a script like   # some plotting commands   ...   # some expensive non GUI computation   ...   # some update to plot above   ... Would we not run the risk that the GUI is idle in the non GUI computation and

Re: [Matplotlib-users] Mac OSX backend

2010-11-13 Thread Eric Firing
On 11/13/2010 06:16 AM, Michiel de Hoon wrote: --- On Sat, 11/13/10, John Hunterjdh2...@gmail.com wrote: Ie if we have a script like # some plotting commands ... # some expensive non GUI computation ... # some update to plot above ... Would we not run the risk that

Re: [Matplotlib-users] Mac OSX backend

2010-11-13 Thread Benjamin Root
On Sat, Nov 13, 2010 at 12:06 PM, Eric Firing efir...@hawaii.edu wrote: On 11/13/2010 06:16 AM, Michiel de Hoon wrote: --- On Sat, 11/13/10, John Hunterjdh2...@gmail.com wrote: Ie if we have a script like # some plotting commands ... # some expensive non GUI computation

Re: [Matplotlib-users] Mac OSX backend

2010-11-13 Thread Michiel de Hoon
Thanks for your reply. --- On Sat, 11/13/10, Eric Firing efir...@hawaii.edu wrote: In the gtk backend, draw_idle calls gobject.idle_add Thus, idle means the gui event loop has no higher priority events.  Is this condition reached only at the end of the script? With Python, there is only

Re: [Matplotlib-users] Mac OSX backend

2010-11-13 Thread Benjamin Root
On Sat, Nov 13, 2010 at 7:58 PM, Michiel de Hoon mjldeh...@yahoo.comwrote: Thanks for your reply. Regarding your first question, how exactly does it disrupt your workflow? Is it because the drawing takes too much time? Or because the focus switches from the terminal window to the figure

Re: [Matplotlib-users] Mac OSX backend

2010-11-12 Thread John Hunter
On Thu, Nov 11, 2010 at 7:32 PM, Michiel de Hoon mjldeh...@yahoo.com wrote: For this example, I am finding the exact same behavior with the Mac OS X backend as with the gtkcairo and gtkagg backends (on Mac OS X and Cygwin). If this is a bug, then which backend can we use as an example of the

[Matplotlib-users] Mac OSX backend

2010-11-11 Thread mdekauwe
Hi, I have my backend set up in my .matplotlib/matplotlibrc file as: backend : MacOSX However if I run a script which does multiple plots and I don't ask the script to display the plots (i.e. not imshow()), I still get blank windows popping up. Does anyone else have this problem? Any

Re: [Matplotlib-users] Mac OSX backend

2010-11-11 Thread John Hunter
On Nov 11, 2010, at 4:15 AM, mdekauwe mdeka...@gmail.com wrote: Hi, I have my backend set up in my .matplotlib/matplotlibrc file as: backend : MacOSX However if I run a script which does multiple plots and I don't ask the script to display the plots (i.e. not imshow()), I

Re: [Matplotlib-users] Mac OSX backend

2010-11-11 Thread mdekauwe
It isn't any one script, if you did import numpy as np import matplotlib.pyplot as plt x = np.arange(10) for i in xrange(10): plt.plot(x) plt.savefig('x.png') it pops up the plot window even though I didn't ask it to. I don't get this functionality on a non mac system. So I wonder if it

Re: [Matplotlib-users] Mac OSX backend

2010-11-11 Thread John Hunter
On Thu, Nov 11, 2010 at 6:32 AM, mdekauwe mdeka...@gmail.com wrote: It isn't any one script, if you did import numpy as np import matplotlib.pyplot as plt x = np.arange(10) for i in xrange(10):    plt.plot(x)    plt.savefig('x.png') it pops up the plot window even though I didn't ask it

Re: [Matplotlib-users] Mac OSX backend

2010-11-11 Thread mdekauwe
OK thanks so perhaps I should also try another backend then? What do other mac users opt for? ps. that works by the way. John Hunter-4 wrote: On Thu, Nov 11, 2010 at 6:32 AM, mdekauwe mdeka...@gmail.com wrote: It isn't any one script, if you did import numpy as np import

Re: [Matplotlib-users] Mac OSX backend

2010-11-11 Thread Michiel de Hoon
Hunter jdh2...@gmail.com wrote: From: John Hunter jdh2...@gmail.com Subject: Re: [Matplotlib-users] Mac OSX backend To: mdekauwe mdeka...@gmail.com Cc: matplotlib-users@lists.sourceforge.net, Michiel de Hoon mjldeh...@yahoo.com Date: Thursday, November 11, 2010, 7:39 AM On Thu, Nov 11, 2010