matplotlib.artist — Matplotlib 3.10.8 documentation

Inheritance Diagrams#

Artist class#

class matplotlib.artist.Artist[source]#

Abstract base class for objects that render into a FigureCanvas.

Typically, all visible elements in a figure are subclasses of Artist.

Interactive#

Clipping#

Bulk Properties#

Drawing#

Figure and Axes#

Children#

Transform#

Units#

Metadata#

Miscellaneous#

Artist.sticky_edges

x and y sticky edge lists for autoscaling.

Artist.set_in_layout

Set if artist is to be included in layout calculations, E.g.

Artist.get_in_layout

Return boolean flag, True if artist is included in layout calculations.

Artist.stale

Whether the artist is 'stale' and needs to be re-drawn for the output to match the internal state of the artist.

Functions#

allow_rasterization

Decorator for Artist.draw method.

get

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

getp

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

setp

Set one or more properties on an Artist, or list allowed values.

kwdoc

Inspect an Artist class (using ArtistInspector) and return information about its settable properties and their current values.

ArtistInspector

A helper class to inspect an Artist and return information about its settable properties and their current values.