Note that we already use a decorator for a similar purpose
(allow_rasterization).
Also, please note that the "draw" method is not just for drawing things.
There are other things being done within the draw method, and I think some
of them still need to be done even though the artist is invisible.
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
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
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
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