matplotlib.artist.getp

matplotlib.artist.getp(obj, property=None) [source]

Return the value of an Artist's property, or print all of them.

Parameters:
objArtist

The queried artist; e.g., a Line2D, a Text, or an Axes.

propertystr or None, default: None

If property is 'somename', this function returns obj.get_somename().

If is is None (or unset), it prints all gettable properties from obj. Many properties have aliases for shorter typing, e.g. 'lw' is an alias for 'linewidth'. In the output, aliases and full property names will be listed as:

property or alias = value

e.g.:

linewidth or lw = 2

See also

setp

© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.4.1/api/_as_gen/matplotlib.artist.getp.html