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 correct 
behavior for this code?

Best,
--Michiel


--- On Thu, 11/11/10, John 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 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
> to. I don't get this
> > functionality on a non mac system. So I wonder if it
> relates to the choice
> > of backend
> 
> 
> I see -- so it is raising the window even w/o show. 
> This is a bug,
> but a minor one.  I suggest at the top of your script
> (before pyplot
> import) doing
> 
> import matplotlib
> matplotlib.use('agg')
> 
> if you only want to save hardcopy png -- macosx may not
> support
> offline rendering.
> 


      

------------------------------------------------------------------------------
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

Reply via email to