checking if an artist is in the list of artists for an axes

How do I check if an artist is in the list of artists attached to an axes?

Mike

How do I check if an artist is in the list of artists attached to an axes?

if a in ax.get_children():
     ...

Eric

···

On 2014/04/21 8:30 PM, Michael Mossey wrote:

Mike

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

In most cases, you can also query the artist object for which axes it belongs to:

ax = a.get_axes()

Note that is can be None if it hasn’t been attached anywhere.

Cheers!
Ben Root

···

On Tue, Apr 22, 2014 at 3:35 AM, Eric Firing <efiring@…202…> wrote:

On 2014/04/21 8:30 PM, Michael Mossey wrote:

How do I check if an artist is in the list of artists attached to an axes?

if a in ax.get_children():

 ...

Eric

Mike


Start Your Social Network Today - Download eXo Platform

Build your Enterprise Intranet with eXo Platform Software

Java Based Open Source Intranet - Social, Extensible, Cloud Ready

Get Started Now And Turn Your Intranet Into A Collaboration Platform

http://p.sf.net/sfu/ExoPlatform


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Start Your Social Network Today - Download eXo Platform

Build your Enterprise Intranet with eXo Platform Software

Java Based Open Source Intranet - Social, Extensible, Cloud Ready

Get Started Now And Turn Your Intranet Into A Collaboration Platform

http://p.sf.net/sfu/ExoPlatform


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users