<divid="unreleased-message"> You are reading an old version of the documentation (v2.2.3). For the latest version see <ahref="https://matplotlib.org/stable/api/artist_api.html">https://matplotlib.org/stable/api/artist_api.html</a></div>
<spanid="artist-api"></span><h1><codeclass="docutils literal notranslate"><spanclass="pre">artist</span></code> Module<aclass="headerlink" href="#artist-module" title="Permalink to this headline">¶</a></h1>
<areashape="rect" id="node3" href="offsetbox_api.html#matplotlib.offsetbox.AnchoredOffsetbox" target="_top" title="An offset box placed according to the legend location" alt="" coords="239,229,335,246"/>
<areashape="rect" id="node5" href="offsetbox_api.html#matplotlib.offsetbox.AnchoredText" target="_top" title="AnchoredOffsetbox with Text." alt="" coords="388,229,460,246"/>
<areashape="rect" id="node4" href="offsetbox_api.html#matplotlib.offsetbox.OffsetBox" target="_top" title="The OffsetBox is a simple container artist. The child artist are meant" alt="" coords="134,181,191,198"/>
<areashape="rect" id="node17" href="offsetbox_api.html#matplotlib.offsetbox.AuxTransformBox" target="_top" title="Offset Box with the aux_transform . Its children will be" alt="" coords="242,261,332,278"/>
<areashape="rect" id="node40" href="offsetbox_api.html#matplotlib.offsetbox.DrawingArea" target="_top" title="The DrawingArea can contain any Artist as a child. The DrawingArea" alt="" coords="252,68,322,85"/>
<areashape="rect" id="node71" href="offsetbox_api.html#matplotlib.offsetbox.TextArea" target="_top" title="The TextArea is contains a single Text instance. The text is" alt="" coords="261,197,313,213"/>
<areashape="rect" id="node7" href="text_api.html#matplotlib.text.Text" target="_top" title="Handle storing and drawing of text in window or data coordinates." alt="" coords="139,342,186,359"/>
<areashape="rect" id="node34" href="contour_api.html#matplotlib.contour.ClabelText" target="_top" title="Unlike the ordinary text, the get_rotation returns an updated" alt="" coords="258,326,317,342"/>
<areashape="rect" id="node72" href="text_api.html#matplotlib.text.TextWithDash" target="_top" title="This is basically a :class:`~matplotlib.text.Text` with a dash" alt="" coords="251,294,324,310"/>
<areashape="rect" id="node9" href="offsetbox_api.html#matplotlib.offsetbox.AnnotationBbox" target="_top" title="Annotation-like class, but with offsetbox instead of Text." alt="" coords="121,472,204,489"/>
<areashape="rect" id="node10" href="#matplotlib.artist.Artist" target="_top" title="Abstract base class for someone who renders into a" alt="" coords="23,649,70,666"/>
<areashape="rect" id="node14" href="_as_gen/matplotlib.patches.Patch.html#matplotlib.patches.Patch" target="_top" title="A patch is a 2D artist with a face color and an edge color." alt="" coords="139,568,186,585"/>
<areashape="rect" id="node35" href="collections_api.html#matplotlib.collections.Collection" target="_top" title="Base class for Collections.  Must be subclassed to be usable." alt="" coords="134,1019,191,1035"/>
<areashape="rect" id="node47" href="_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure" target="_top" title="The top level container for all the plot elements." alt="" coords="139,600,186,617"/>
<areashape="rect" id="node53" href="legend_api.html#matplotlib.legend.Legend" target="_top" title="Place a legend on the axes at location loc." alt="" coords="139,633,186,649"/>
<areashape="rect" id="node54" href="_as_gen/matplotlib.lines.Line2D.html#matplotlib.lines.Line2D" target="_top" title="A line - the line can have both a solid linestyle connecting all" alt="" coords="139,697,186,714"/>
<areashape="rect" id="node70" href="table_api.html#matplotlib.table.Table" target="_top" title="Create a table of cells." alt="" coords="139,762,186,778"/>
<areashape="rect" id="node73" href="axis_api.html#matplotlib.axis.Tick" target="_top" title="Abstract base class for the axis ticks, grid lines and labels" alt="" coords="139,36,186,52"/>
<areashape="rect" id="node11" href="_as_gen/matplotlib.patches.Arc.html#matplotlib.patches.Arc" target="_top" title="An elliptical arc.  Because it performs various optimizations, it" alt="" coords="400,600,447,616"/>
<areashape="rect" id="node28" href="_as_gen/matplotlib.patches.Rectangle.html#matplotlib.patches.Rectangle" target="_top" title="Draw a rectangle with lower left at *xy* = (*x*, *y*) with" alt="" coords="259,681,315,697"/>
<areashape="rect" id="node38" href="_as_gen/matplotlib.patches.FancyArrowPatch.html#matplotlib.patches.FancyArrowPatch" target="_top" title="A fancy arrow patch. It draws an arrow using the :class:`ArrowStyle`." alt="" coords="244,745,330,762"/>
<areashape="rect" id="node45" href="_as_gen/matplotlib.patches.Polygon.html#matplotlib.patches.Polygon" target="_top" title="A general polygon patch." alt="" coords="263,390,312,407"/>
<areashape="rect" id="node46" href="_as_gen/matplotlib.patches.FancyBboxPatch.html#matplotlib.patches.FancyBboxPatch" target="_top" title="Draw a fancy box around a rectangle with lower left at *xy*=(*x*," alt="" coords="246,423,329,439"/>
<areashape="rect" id="node68" href="spines_api.html#matplotlib.spines.Spine" target="_top" title="an axis spine -- the line noting the data area boundaries" alt="" coords="264,519,311,536"/>
<areashape="rect" id="node79" href="_as_gen/matplotlib.patches.YAArrow.html#matplotlib.patches.YAArrow" target="_top" title="Yet another arrow class." alt="" coords="262,584,312,600"/>
<areashape="rect" id="node15" href="collections_api.html#matplotlib.collections.AsteriskPolygonCollection" target="_top" title="Draw a collection of regular asterisks with *numsides* points." alt="" coords="509,1083,634,1100"/>
<areashape="rect" id="node16" href="collections_api.html#matplotlib.collections.RegularPolyCollection" target="_top" title="Draw a collection of regular polygons with *numsides*." alt="" coords="370,1067,478,1084"/>
<areashape="rect" id="node69" href="collections_api.html#matplotlib.collections.StarPolygonCollection" target="_top" title="Draw a collection of regular stars with *numsides* points." alt="" coords="518,1051,626,1067"/>
<areashape="rect" id="node63" href="projections_api.html#matplotlib.projections.polar.PolarAxes" target="_top" title="A polar graph projection, where the input dimensions are *theta*, *r*." alt="" coords="396,777,452,794"/>
<areashape="rect" id="node62" href="image_api.html#matplotlib.image.PcolorImage" target="_top" title="Make a pcolor-style plot with an irregular rectangular grid." alt="" coords="390,906,457,923"/>
<areashape="rect" id="node25" href="image_api.html#matplotlib.image.BboxImage" target="_top" title="The Image class whose size is determined by the given bbox." alt="" coords="256,874,318,891"/>
<areashape="rect" id="node26" href="collections_api.html#matplotlib.collections.BrokenBarHCollection" target="_top" title="A collection of horizontal bars spanning *yrange* with a sequence of" alt="" coords="518,971,626,987"/>
<areashape="rect" id="node27" href="table_api.html#matplotlib.table.Cell" target="_top" title="A cell is a Rectangle with some associated text." alt="" coords="400,681,447,697"/>
<areashape="rect" id="node39" href="table_api.html#matplotlib.table.CustomCell" target="_top" title="A subclass of Cell where the sides may be visibly toggled." alt="" coords="540,681,603,697"/>
<areashape="rect" id="node30" href="collections_api.html#matplotlib.collections.CircleCollection" target="_top" title="A collection of circles, drawn using splines." alt="" coords="383,1003,464,1020"/>
<areashape="rect" id="node60" href="collections_api.html#matplotlib.collections.PathCollection" target="_top" title="This is the most basic :class:`Collection` subclass." alt="" coords="386,1035,461,1052"/>
<areashape="rect" id="node32" href="_as_gen/matplotlib.patches.CirclePolygon.html#matplotlib.patches.CirclePolygon" target="_top" title="A polygon-approximation of a circle patch." alt="" coords="388,713,460,729"/>
<areashape="rect" id="node41" href="collections_api.html#matplotlib.collections.EllipseCollection" target="_top" title="A collection of ellipses, drawn using splines." alt="" coords="244,1035,330,1052"/>
<areashape="rect" id="node43" href="collections_api.html#matplotlib.collections.LineCollection" target="_top" title="All parameters must be sequences or scalars; if scalars, they will" alt="" coords="250,1067,325,1084"/>
<areashape="rect" id="node64" href="collections_api.html#matplotlib.collections.QuadMesh" target="_top" title="Class for the efficient drawing of a quadrilateral mesh." alt="" coords="258,1132,317,1149"/>
<areashape="rect" id="node74" href="collections_api.html#matplotlib.collections.TriMesh" target="_top" title="Class for the efficient drawing of a triangular mesh using" alt="" coords="264,971,311,987"/>
<areashape="rect" id="node36" href="cm_api.html#matplotlib.cm.ScalarMappable" target="_top" title="This is a mixin class to support scalar data to RGBA mapping." alt="" coords="6,954,88,971"/>
<areashape="rect" id="node37" href="_as_gen/matplotlib.patches.ConnectionPatch.html#matplotlib.patches.ConnectionPatch" target="_top" title="A :class:`~matplotlib.patches.ConnectionPatch` class is to make" alt="" coords="381,745,467,762"/>
<areashape="rect" id="node44" href="_as_gen/matplotlib.patches.FancyArrow.html#matplotlib.patches.FancyArrow" target="_top" title="Like Arrow, but lets you set head width and head height independently." alt="" coords="392,390,456,407"/>
<areashape="rect" id="node49" href="offsetbox_api.html#matplotlib.offsetbox.HPacker" target="_top" title="The HPacker has its children packed horizontally. It automatically" alt="" coords="400,85,448,101"/>
<areashape="rect" id="node75" href="offsetbox_api.html#matplotlib.offsetbox.VPacker" target="_top" title="The VPacker has its children packed vertically. It automatically" alt="" coords="400,117,448,133"/>
<areashape="rect" id="node78" href="axis_api.html#matplotlib.axis.XTick" target="_top" title="Contains all the Artists needed to make an x tick - the tick line," alt="" coords="264,36,311,52"/>
<areashape="rect" id="node81" href="axis_api.html#matplotlib.axis.YTick" target="_top" title="Contains all the Artists needed to make a Y tick - the tick line," alt="" coords="264,3,311,20"/>
<h2><codeclass="docutils literal notranslate"><spanclass="pre">Artist</span></code> class<aclass="headerlink" href="#artist-class" title="Permalink to this headline">¶</a></h2>
<dlclass="class">
<dtid="matplotlib.artist.Artist">
<emclass="property">class </em><codeclass="descclassname">matplotlib.artist.</code><codeclass="descname">Artist</code><aclass="reference internal" href="../_modules/matplotlib/artist.html#Artist"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#matplotlib.artist.Artist" title="Permalink to this definition">¶</a></dt>
<dd><p>Abstract base class for someone who renders into a
<td>Adds a callback function that will be called whenever one of the <aclass="reference internal" href="#matplotlib.artist.Artist" title="matplotlib.artist.Artist"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Artist</span></code></a>'s properties changes.</td>
<td>The <aclass="reference internal" href="axes_api.html#matplotlib.axes.Axes" title="matplotlib.axes.Axes"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Axes</span></code></a> instance the artist resides in, or <em>None</em>.</td>
<td>Return a list of the child <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Artist`s</span><spanclass="pre">this</span><spanclass="pre">:class:`Artist</span></code> contains.</td>
<td>Return the <aclass="reference internal" href="transformations.html#matplotlib.transforms.Transform" title="matplotlib.transforms.Transform"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Transform</span></code></a> instance used by this artist.</td>
<td>A helper class to inspect an <aclass="reference internal" href="#matplotlib.artist.Artist" title="matplotlib.artist.Artist"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Artist</span></code></a> and return information about it's settable properties and their current values.</td>