ContourSet not an Artist?

Hi,

I just noticed that ContourSet only inherits ScalarMappable and
ContourLabeller, neither of which is an Artist subclass, which means
ContourSet is not an Artist. (And is why it does not have a remove()
method). Anyone have any idea why and if we should correct that? I'm
not sure what the ramifications would be.

Ryan

···

--
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

Hi,

I just noticed that ContourSet only inherits ScalarMappable and
ContourLabeller, neither of which is an Artist subclass, which means
ContourSet is not an Artist. (And is why it does not have a remove()
method). Anyone have any idea why and if we should correct that? I'm
not sure what the ramifications would be.

It's just historical. Should every plotting command return an Artist, simple or compound? If so, I suspect contouring is not the only thing that will need refactoring. I haven't investigated what would be required.

Eric

···

On 07/09/2010 11:45 AM, Ryan May wrote:

Ryan

Ryan, was there a particular use case in which you found that CS was
not an Artist to be a limitation, or were you just asking out of
curiosity?

JDH

···

On Fri, Jul 9, 2010 at 9:59 PM, Eric Firing <efiring@...229...> wrote:

On 07/09/2010 11:45 AM, Ryan May wrote:

Hi,

I just noticed that ContourSet only inherits ScalarMappable and
ContourLabeller, neither of which is an Artist subclass, which means
ContourSet is not an Artist. (And is why it does not have a remove()
method). Anyone have any idea why and if we should correct that? I'm
not sure what the ramifications would be.

It's just historical. Should every plotting command return an Artist,
simple or compound? If so, I suspect contouring is not the only thing
that will need refactoring. I haven't investigated what would be required.

Hi,

I just noticed that ContourSet only inherits ScalarMappable and
ContourLabeller, neither of which is an Artist subclass, which means
ContourSet is not an Artist. (And is why it does not have a remove()
method). Anyone have any idea why and if we should correct that? I'm
not sure what the ramifications would be.

It's just historical. Should every plotting command return an Artist,
simple or compound? If so, I suspect contouring is not the only thing
that will need refactoring. I haven't investigated what would be required.

Ryan, was there a particular use case in which you found that CS was
not an Artist to be a limitation, or were you just asking out of
curiosit

Looking at adding a remove method, per another thread. I was confused by the lack of standard machinery, and wasn't sure if I should just add remove method or make it an artist.

Ryan

···

On Jul 9, 2010, at 22:11, John Hunter <jdh2358@...149...> wrote:

On Fri, Jul 9, 2010 at 9:59 PM, Eric Firing <efiring@...229...> wrote:

On 07/09/2010 11:45 AM, Ryan May wrote:

JDH

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options