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 show() is made, regardless of whether interactive is True or False.
Best, --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, 9:22 AM > 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 TkAgg > backend open windows. Is this really the desired behavior? > It seems counterintuitive that such a global parameter can > determine whether a figure is opened or not. > > > > While we're on the topic, is this interactive > parameter still needed in matplotlib? In my understanding, > in older versions of matplotlib, interactive=False could > significantly speed up some plots. But are there still any > such cases with the current organization of the drawing code > in matplotlib? > > > Yes, this is the desired behavior. The interactive : > True parameter > is useful when working interactively from the shell, when > want to do > > plt.figure() > plt.plot([1,2,3]) > plt.xlabel('a label') > > and have the figure show up on the figure call and update > on the plot > and xlabel call. This is most definitely not what you > want to do in a > script, because you don't want to pay for the draw until > the end (when > a call to show is made). This is discussed at > > http://matplotlib.sourceforge.net/users/shell.html > > JDH > ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users