matplotlib.axes.Axes.add_patch#

Axes.add_patch(p)[source]#

Add a Patch to the Axes; return the patch.

Examples using matplotlib.axes.Axes.add_patch#

Inset locator demo

Inset locator demo

Looking glass

Looking glass

Path editor

Path editor

Polygon editor

Polygon editor

Trifinder Event Demo

Trifinder Event Demo

Viewlims

Viewlims

Many ways to plot images

Many ways to plot images

Curve with error band

Curve with error band

Identify whether artists intersect

Identify whether artists intersect

Building histograms using Rectangles and PolyCollections

Building histograms using Rectangles and PolyCollections

Packed-bubble chart

Packed-bubble chart

SVG filter pie

SVG filter pie

TickedStroke patheffect

TickedStroke patheffect

Draw flat objects in 3D plot

Draw flat objects in 3D plot

Compound path

Compound path

Dolphins

Dolphins

Mmh Donuts!!!

Mmh Donuts!!!

Ellipse with orientation arrow demo

Ellipse with orientation arrow demo

Drawing fancy boxes

Drawing fancy boxes

Hatch demo

Hatch demo

Hatch style reference

Hatch style reference

PathPatch object

PathPatch object

Bezier curve

Bezier curve

Firefox

Firefox

Integral as the area under a curve

Integral as the area under a curve

Ishikawa Diagram

Ishikawa Diagram

Boxplots

Boxplots

Plot a confidence ellipse of a two-dimensional dataset

Plot a confidence ellipse of a two-dimensional dataset

ggplot style sheet

ggplot style sheet

Axes box aspect

Axes box aspect

Controlling view limits using margins and sticky_edges

Controlling view limits using margins and sticky_edges

Angle annotations on bracket arrows

Angle annotations on bracket arrows

Annotate plots

Annotate plots

Text alignment

Text alignment

Artist tests

Artist tests

Ellipse with units

Ellipse with units

Artist tutorial

Artist tutorial

Path Tutorial

Path Tutorial

Transformations Tutorial

Transformations Tutorial

Legend guide

Legend guide

Specifying colors

Specifying colors

Annotations

Annotations

Text properties and layout

Text properties and layout