matplotlib.artist#

Inheritance Diagrams#

Inheritance diagram of matplotlib.axes._axes.Axes, matplotlib.axes._base._AxesBase, matplotlib.axis.Axis, matplotlib.axis.Tick, matplotlib.axis.XAxis, matplotlib.axis.XTick, matplotlib.axis.YAxis, matplotlib.axis.YTick, matplotlib.collections.AsteriskPolygonCollection, matplotlib.collections.CircleCollection, matplotlib.collections.Collection, matplotlib.collections.EllipseCollection, matplotlib.collections.EventCollection, matplotlib.collections.LineCollection, matplotlib.collections.PatchCollection, matplotlib.collections.PathCollection, matplotlib.collections.PolyCollection, matplotlib.collections.QuadMesh, matplotlib.collections.RegularPolyCollection, matplotlib.collections.StarPolygonCollection, matplotlib.collections.TriMesh, matplotlib.collections._CollectionWithSizes, matplotlib.contour.ContourSet, matplotlib.contour.QuadContourSet, matplotlib.figure.FigureBase, matplotlib.figure.Figure, matplotlib.figure.SubFigure, matplotlib.image.AxesImage, matplotlib.image.BboxImage, matplotlib.image.FigureImage, matplotlib.image.NonUniformImage, matplotlib.image.PcolorImage, matplotlib.image._ImageBase, matplotlib.legend.Legend, matplotlib.lines.Line2D, matplotlib.offsetbox.AnchoredOffsetbox, matplotlib.offsetbox.AnchoredText, matplotlib.offsetbox.AnnotationBbox, matplotlib.offsetbox.AuxTransformBox, matplotlib.offsetbox.DrawingArea, matplotlib.offsetbox.HPacker, matplotlib.offsetbox.OffsetBox, matplotlib.offsetbox.OffsetImage, matplotlib.offsetbox.PackerBase, matplotlib.offsetbox.PaddedBox, matplotlib.offsetbox.TextArea, matplotlib.offsetbox.VPacker, matplotlib.patches.Annulus, matplotlib.patches.Arc, matplotlib.patches.Arrow, matplotlib.patches.Circle, matplotlib.patches.CirclePolygon, matplotlib.patches.ConnectionPatch, matplotlib.patches.Ellipse, matplotlib.patches.FancyArrow, matplotlib.patches.FancyArrowPatch, matplotlib.patches.FancyBboxPatch, matplotlib.patches.Patch, matplotlib.patches.PathPatch, matplotlib.patches.Polygon, matplotlib.patches.Rectangle, matplotlib.patches.RegularPolygon, matplotlib.patches.Shadow, matplotlib.patches.StepPatch, matplotlib.patches.Wedge, matplotlib.projections.geo.AitoffAxes, matplotlib.projections.geo.GeoAxes, matplotlib.projections.geo.HammerAxes, matplotlib.projections.geo.LambertAxes, matplotlib.projections.geo.MollweideAxes, matplotlib.projections.polar.PolarAxes, matplotlib.projections.polar.RadialAxis, matplotlib.projections.polar.RadialTick, matplotlib.projections.polar.ThetaAxis, matplotlib.projections.polar.ThetaTick, matplotlib.quiver.Barbs, matplotlib.quiver.Quiver, matplotlib.quiver.QuiverKey, matplotlib.spines.Spine, matplotlib.table.Cell, matplotlib.table.Table, matplotlib.text.Annotation, matplotlib.text.Text, matplotlib.tri.TriContourSet

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#

Artist.add_callback

Add a callback function that will be called whenever one of the Artist's properties changes.

Artist.remove_callback

Remove a callback based on its observer id.

Artist.pchanged

Call all of the registered callbacks.

Artist.get_cursor_data

Return the cursor data for a given event.

Artist.format_cursor_data

Return a string representation of data.

Artist.set_mouseover

Set whether this artist is queried for custom context information when the mouse cursor moves over it.

Artist.get_mouseover

Return whether this artist is queried for custom context information when the mouse cursor moves over it.

Artist.mouseover

Return whether this artist is queried for custom context information when the mouse cursor moves over it.

Artist.contains

Test whether the artist contains the mouse event.

Artist.pick

Process a pick event.

Artist.pickable

Return whether the artist is pickable.

Artist.set_picker

Define the picking behavior of the artist.

Artist.get_picker

Return the picking behavior of the artist.

Clipping#

Artist.set_clip_on

Set whether the artist uses clipping.

Artist.get_clip_on

Return whether the artist uses clipping.

Artist.set_clip_box

Set the artist's clip Bbox.

Artist.get_clip_box

Return the clipbox.