matplotlib.artist.ArtistInspector
-
class matplotlib.artist.ArtistInspector(o)
-
A helper class to inspect an
Artist
and return information about it’s settable properties and their current values.Initialize the artist inspector with an
Artist
or sequence ofArtists
. If a sequence is used, we assume it is a homogeneous sequence (allArtists
are of the same type) and it is your responsibility to make sure this is so.-
__init__(o)
-
Initialize the artist inspector with an
Artist
or sequence ofArtists
. If a sequence is used, we assume it is a homogeneous sequence (allArtists
are of the same type) and it is your responsibility to make sure this is so.
Methods
__init__
(o)Initialize the artist inspector with an Artist
or sequence ofArtists
.aliased_name
(s)return ‘PROPNAME or alias’ if s has an alias, else return aliased_name_rest
(s, target)return ‘PROPNAME or alias’ if s has an alias, else return findobj
([match])Recursively find all matplotlib.artist.Artist
instances contained in self.get_aliases
()Get a dict mapping fullname -> alias for each alias in the ArtistInspector
.get_setters
()Get the attribute strings with setters for object. get_valid_values
(attr)Get the legal arguments for the setter associated with attr. is_alias
(o)Return True if method object o is an alias for another function. pprint_getters
()Return the getters and actual values as list of strings. pprint_setters
([prop, leadingspace])If prop is None, return a list of strings of all settable properies and their valid values. pprint_setters_rest
([prop, leadingspace])If prop is None, return a list of strings of all settable properies and their valid values. properties
()return a dictionary mapping property name -> value -
© 2012–2017 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
http://matplotlib.org/2.0.2/api/_as_gen/matplotlib.artist.ArtistInspector.html