matplotlib.pyplot.getp#

matplotlib.pyplot.getp(obj,*args,**kwargs)[source]#

Return the value of anArtist'sproperty, or print all of them.

Parameters:
objArtist

The queried artist; e.g., aLine2D, aText, or anAxes.

propertystr or None, default: None

Ifproperty is 'somename', this function returnsobj.get_somename().

If it's None (or unset), itprints all gettable properties fromobj. Many properties have aliases for shorter typing, e.g. 'lw' isan alias for 'linewidth'. In the output, aliases and full propertynames will be listed as:

property or alias = value

e.g.:

linewidth or lw = 2

See also

setp

Notes

Note

This is equivalent tomatplotlib.artist.getp.

Examples usingmatplotlib.pyplot.getp#

Set and get properties

Set and get properties