matplotlib.axes.Axes.add_artist#

Axes.add_artist(a)[source]#

Add anArtist to the Axes; return the artist.

Useadd_artist only for artists for which there is no dedicated"add" method; and if necessary, use a method such asupdate_datalimto manually update thedataLim if the artist is to be includedin autoscaling.

If notransform has been specified when creating the artist (e.g.artist.get_transform()==None) then the transform is set toax.transData.

Examples usingmatplotlib.axes.Axes.add_artist#

Anchored Direction Arrow

Anchored Direction Arrow

Axes Grid2

Axes Grid2

Inset locator demo 2

Inset locator demo 2

Simple Anchored Artists

Simple Anchored Artists

BboxImage Demo

BboxImage Demo

Scatter plot with a legend

Scatter plot with a legend

Anchored Artists

Anchored Artists

Bar of pie

Bar of pie

Reference for Matplotlib artists

Reference for Matplotlib artists

Ellipse Demo

Ellipse Demo

Anatomy of a figure

Anatomy of a figure

Annotate plots

Annotate plots

AnnotationBbox demo

AnnotationBbox demo

Using a text as a Path

Using a text as a Path

Artist tests

Artist tests

Legend guide

Legend guide

Annotations

Annotations