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#

Curve with error band

Curve with error band

Many ways to plot images

Many ways to plot images

Axes box aspect

Axes box aspect

Controlling view limits using margins and sticky_edges

Controlling view limits using margins and sticky_edges

Boxplots

Boxplots

Plot a confidence ellipse of a two-dimensional dataset

Plot a confidence ellipse of a two-dimensional dataset

Angle annotations on bracket arrows

Angle annotations on bracket arrows

Annotating Plots

Annotating Plots

Text alignment

Text alignment

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

ggplot style sheet

ggplot style sheet

Inset locator demo

Inset locator demo

Firefox

Firefox

Integral as the area under a curve

Integral as the area under a curve

Looking Glass

Looking Glass

Path editor

Path editor

Poly Editor

Poly Editor

Trifinder Event Demo

Trifinder Event Demo

Viewlims

Viewlims

Changing colors of lines intersecting a box

Changing colors of lines intersecting a box

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

Ishikawa Diagram

Ishikawa Diagram

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

Text properties and layout

Text properties and layout

Annotations

Annotations