On this page
matplotlib.artist.getp
matplotlib.artist.getp(obj, property=None)[source]-
Return the value of object's property. property is an optional string for the property you want to return
Example usage:
getp(obj) # get all the object properties getp(obj, 'linestyle') # get the linestyle propertyobj is a
obj.get_somename()Artistinstance, e.g.,Line2Dor an instance of aAxesormatplotlib.text.Text. If the property is 'somename', this function returns
property or alias = valuegetp()can be used to query all the gettable properties withgetp(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:e.g.:
linewidth or lw = 2
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.0.0/api/_as_gen/matplotlib.artist.getp.html