matplotlib.artist.Artist.set#

Artist.set(*, agg_filter=<UNSET>, alpha=<UNSET>, animated=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, gid=<UNSET>, in_layout=<UNSET>, label=<UNSET>, mouseover=<UNSET>, path_effects=<UNSET>, picker=<UNSET>, rasterized=<UNSET>, sketch_params=<UNSET>, snap=<UNSET>, transform=<UNSET>, url=<UNSET>, visible=<UNSET>, zorder=<UNSET>)[source]#

Set multiple properties at once.

Supported properties are

Property

Description

agg_filter

a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array and two offsets from the bottom left corner of the image

alpha

scalar or None

animated

bool

clip_box

Bbox

clip_on

bool

clip_path

Patch or (Path, Transform) or None

figure

Figure

gid

str

in_layout

bool

label

object

mouseover

bool

path_effects

AbstractPathEffect

picker

None or bool or float or callable

rasterized

bool

sketch_params

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

snap

bool or None

transform

Transform

url

str

visible

bool

zorder

float

Examples using matplotlib.artist.Artist.set#

Curve with error band

Curve with error band

Curve with error band
Bar chart with gradients

Bar chart with gradients

Bar chart with gradients
Scatter plot with histograms

Scatter plot with histograms

Scatter plot with histograms
Simple Plot

Simple Plot

Simple Plot
Creating a timeline with lines, dates, and text

Creating a timeline with lines, dates, and text

Creating a timeline with lines, dates, and text
Contour plot of irregularly spaced data

Contour plot of irregularly spaced data

Contour plot of irregularly spaced data
Axes Demo

Axes Demo

Axes Demo
Creating multiple subplots using ``plt.subplots``

Creating multiple subplots using plt.subplots

Creating multiple subplots using ``plt.subplots``
Boxplots

Boxplots

Boxplots
Hexagonal binned plot

Hexagonal binned plot

Hexagonal binned plot
Nested pie charts

Nested pie charts

Nested pie charts
Annotating Plots

Annotating Plots

Annotating Plots
Arrow Demo

Arrow Demo

Arrow Demo
Date tick labels

Date tick labels

Date tick labels
Usetex Baseline Test

Usetex Baseline Test

Usetex Baseline Test
Text Commands

Text Commands

Text Commands
Drawing fancy boxes

Drawing fancy boxes

Drawing fancy boxes
Adding a colorbar to inset axes

Adding a colorbar to inset axes

Adding a colorbar to inset axes
Inset Locator Demo

Inset Locator Demo

Inset Locator Demo
Anatomy of a figure

Anatomy of a figure

Anatomy of a figure
Animated 3D random walk

Animated 3D random walk

Animated 3D random walk
Pick Event Demo

Pick Event Demo

Pick Event Demo
Zoom Window

Zoom Window

Zoom Window
Manual Contour

Manual Contour

Manual Contour
Plotting with keywords

Plotting with keywords

Plotting with keywords
3D box surface plot

3D box surface plot

3D box surface plot
Projecting contour profiles onto a graph

Projecting contour profiles onto a graph

Projecting contour profiles onto a graph
Projecting filled contour onto a graph

Projecting filled contour onto a graph

Projecting filled contour onto a graph
Generate polygons to fill under 3D line graph

Generate polygons to fill under 3D line graph

Generate polygons to fill under 3D line graph
3D stem

3D stem

3D stem
3D voxel / volumetric plot with rgb colors

3D voxel / volumetric plot with rgb colors

3D voxel / volumetric plot with rgb colors
Log Demo

Log Demo

Log Demo
Annotate Explain

Annotate Explain

Annotate Explain
Connection styles for annotations

Connection styles for annotations

Connection styles for annotations
Nested GridSpecs

Nested GridSpecs

Nested GridSpecs
Simple Annotate01

Simple Annotate01

Simple Annotate01
Mouse Cursor

Mouse Cursor

Mouse Cursor
The Lifecycle of a Plot

The Lifecycle of a Plot

The Lifecycle of a Plot
Arranging multiple Axes in a Figure

Arranging multiple Axes in a Figure

Arranging multiple Axes in a Figure
plot(x, y)

plot(x, y)

plot(x, y)
scatter(x, y)

scatter(x, y)

scatter(x, y)
bar(x, height)

bar(x, height)

bar(x, height)
stem(x, y)

stem(x, y)

stem(x, y)
step(x, y)

step(x, y)

step(x, y)
fill_between(x, y1, y2)

fill_between(x, y1, y2)

fill_between(x, y1, y2)
stackplot(x, y)

stackplot(x, y)

stackplot(x, y)
barbs(X, Y, U, V)

barbs(X, Y, U, V)

barbs(X, Y, U, V)
quiver(X, Y, U, V)

quiver(X, Y, U, V)

quiver(X, Y, U, V)
hist(x)

hist(x)

hist(x)
boxplot(X)

boxplot(X)

boxplot(X)
errorbar(x, y, yerr, xerr)

errorbar(x, y, yerr, xerr)

errorbar(x, y, yerr, xerr)
violinplot(D)

violinplot(D)

violinplot(D)
eventplot(D)

eventplot(D)

eventplot(D)
hist2d(x, y)

hist2d(x, y)

hist2d(x, y)
hexbin(x, y, C)

hexbin(x, y, C)

hexbin(x, y, C)
pie(x)

pie(x)

pie(x)
tricontour(x, y, z)

tricontour(x, y, z)

tricontour(x, y, z)
tricontourf(x, y, z)

tricontourf(x, y, z)

tricontourf(x, y, z)
tripcolor(x, y, z)

tripcolor(x, y, z)

tripcolor(x, y, z)
triplot(x, y)

triplot(x, y)

triplot(x, y)