matplotlib.patches.PathPatch#

class matplotlib.patches.PathPatch(path, **kwargs)[Quelle]#

Bases: Patch

Ein allgemeiner Polykurven-Pfad-Patch.

path ist ein Path Objekt.

Gültige Schlüsselwortargumente sind

Eigenschaft

Beschreibung

agg_filter

eine Filterfunktion, die ein (m, n, 3) Float-Array und einen dpi-Wert entgegennimmt und ein (m, n, 3) Array und zwei Offsets von der linken unteren Ecke des Bildes zurückgibt

alpha

unknown

animated

bool

antialiased oder aa

bool oder None

capstyle

CapStyle oder {'butt', 'projecting', 'round'}

clip_box

BboxBase oder None

clip_on

bool

clip_path

Patch oder (Path, Transform) oder None

color

color

edgecolor oder ec

Farbe oder None

facecolor oder fc

Farbe oder None

figure

Figure oder SubFigure

füllen

bool

gid

str

Muster (hatch)

{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'}

hatch_linewidth

unknown

in_layout

bool

joinstyle

JoinStyle oder {'miter', 'round', 'bevel'}

label

object

linestyle oder ls

{'-', '--', '-.', ':', '', (offset, on-off-seq), ...}

linewidth oder lw

float oder None

mouseover

bool

path_effects

Liste von AbstractPathEffect

picker

None oder bool oder float oder callable

rasterized

bool

sketch_params

(scale: float, length: float, randomness: float)

snap

bool oder None

transform

Transform

url

str

visible

bool

zorder

float

get_path()[Quelle]#

Gibt den Pfad dieser Markierung zurück.

set(*, agg_filter=<UNSET>, alpha=<UNSET>, animated=<UNSET>, antialiased=<UNSET>, capstyle=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, color=<UNSET>, edgecolor=<UNSET>, facecolor=<UNSET>, fill=<UNSET>, gid=<UNSET>, hatch=<UNSET>, hatch_linewidth=<UNSET>, in_layout=<UNSET>, joinstyle=<UNSET>, label=<UNSET>, linestyle=<UNSET>, linewidth=<UNSET>, mouseover=<UNSET>, path=<UNSET>, path_effects=<UNSET>, picker=<UNSET>, rasterized=<UNSET>, sketch_params=<UNSET>, snap=<UNSET>, transform=<UNSET>, url=<UNSET>, visible=<UNSET>, zorder=<UNSET>)[Quelle]#

Setzt mehrere Eigenschaften auf einmal.

Unterstützte Eigenschaften sind

Eigenschaft

Beschreibung

agg_filter

eine Filterfunktion, die ein (m, n, 3) Float-Array und einen dpi-Wert entgegennimmt und ein (m, n, 3) Array und zwei Offsets von der linken unteren Ecke des Bildes zurückgibt

alpha

float oder None

animated

bool

antialiased oder aa

bool oder None

capstyle

CapStyle oder {'butt', 'projecting', 'round'}

clip_box

BboxBase oder None

clip_on

bool

clip_path

Patch oder (Path, Transform) oder None

color

color

edgecolor oder ec

Farbe oder None

facecolor oder fc

Farbe oder None

figure

Figure oder SubFigure

füllen

bool

gid

str

Muster (hatch)

{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'}

hatch_linewidth

unknown

in_layout

bool

joinstyle

JoinStyle oder {'miter', 'round', 'bevel'}

label

object

linestyle oder ls

{'-', '--', '-.', ':', '', (offset, on-off-seq), ...}

linewidth oder lw

float oder None

mouseover

bool

Pfad

unknown

path_effects

Liste von AbstractPathEffect

picker

None oder bool oder float oder callable

rasterized

bool

sketch_params

(scale: float, length: float, randomness: float)

snap

bool oder None

transform

Transform

url

str

visible

bool

zorder

float

set_path(path)[Quelle]#

Beispiele zur Verwendung von matplotlib.patches.PathPatch#

Pfadeditor

Pfadeditor

Viele Möglichkeiten, Bilder darzustellen

Viele Möglichkeiten, Bilder darzustellen

Kurve mit Fehlerband

Kurve mit Fehlerband

Stairs Demo

Stairs Demo

Histogramme mit Rechtecken und PolyCollections erstellen

Histogramme mit Rechtecken und PolyCollections erstellen

Matplotlib-Logo

Matplotlib-Logo

TickedStroke Patheffect

TickedStroke Patheffect

Flache Objekte in 3D-Diagramm zeichnen

Flache Objekte in 3D-Diagramm zeichnen

Referenz für Matplotlib-Künstler

Referenz für Matplotlib-Künstler

Zusammengesetzter Pfad

Zusammengesetzter Pfad

Delfine

Delfine

Mmh Donuts!!!

Mmh Donuts!!!

PathPatch-Objekt

PathPatch-Objekt

Bézier-Kurve

Bézier-Kurve

Firefox

Firefox

Boxplots mit benutzerdefinierten Füllfarben

Boxplots mit benutzerdefinierten Füllfarben

Text als Pfad verwenden

Text als Pfad verwenden

Pfad-Tutorial

Pfad-Tutorial