[matplotlib-devel] Use of meta on Artist

2012-11-26 Thread Phil Elson
I've just been reviewing a really useful PR ( https://github.com/matplotlib/matplotlib/pull/1531) from Pierre Haessig which speeds up the drawing of non-visible artists by bringing the following line to the top of the LineArtist's draw method: if self.get_visible() is False: return Th

Re: [matplotlib-devel] [PATCH] gtkagg backend leaks gc's.

2012-11-26 Thread Damon McDougall
On Sun, Nov 11, 2012 at 4:23 PM, Benjamin Root wrote: > > > On Thursday, November 8, 2012, Carl Michal wrote: >> >> Hello, >> >> I noticed that a program I had that uses canvas.blit() to do animated >> graphs >> with the gtkagg backend was leaking memory. >> >> I tracked this down to gtk gc's bein

Re: [matplotlib-devel] Use of meta on Artist

2012-11-26 Thread Michael Droettboom
The problem is that I don't think we can do this for all artists. Some may need to create groupings, or push and pop state even if they are "invisible". For instance, this is used in the SVG backend to create named groupings (possibly empty) that are referenced from Javascript to provide inte

Re: [matplotlib-devel] Use of meta on Artist

2012-11-26 Thread Eric Firing
On 2012/11/26 7:12 AM, Michael Droettboom wrote: > The problem is that I don't think we can do this for all artists. Some > may need to create groupings, or push and pop state even if they are > "invisible". For instance, this is used in the SVG backend to create > named groupings (possibly empty

Re: [matplotlib-devel] Use of meta on Artist

2012-11-26 Thread Ryan May
On Mon, Nov 26, 2012 at 12:23 PM, Eric Firing wrote: > On 2012/11/26 7:12 AM, Michael Droettboom wrote: > > The problem is that I don't think we can do this for all artists. Some > > may need to create groupings, or push and pop state even if they are > > "invisible". For instance, this is used