[ Web Proxy ]
URL:
Viewing: https://matplotlib.org/devdocs/api/toolkits/mplot3d/../../_as_gen/matplotlib.artist.Artist.set.html [Back]  [Original]

matplotlib.artist.Artist.set — Matplotlib 3.12.0.dev738+ge3fc0dad9 documentation
Back to top
Search the docs ...:

matplotlib.artist.Artist.set#

Artist.set(*, agg_filter=<UNSET>, alpha=<UNSET>, animated=<UNSET>, blend_mode=<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.

a.set(a=A, b=B, c=C)

is equivalent to

a.set_a(A)
a.set_b(B)
a.set_c(C)

In addition to the full property names, aliases are also supported, e.g. set(lw=2) is equivalent to set(linewidth=2), but it is an error to pass both simultaneously.

The order of the individual setter calls matches the order of parameters in set(). However, most properties do not depend on each other so that order is rarely relevant.

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

float or None

animated

bool

blend_mode

blend mode

clip_box

BboxBase or None

clip_on

bool

clip_path

Patch or (Path, Transform) or None

figure

Figure or SubFigure

gid

str

in_layout

bool

label

object

mouseover

bool

path_effects

list of 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#

[]

Line plot

Line plot
[]

Infinite lines

Infinite lines
[]

Bar chart with labels

Bar chart with labels
[]

Bar chart with gradients

Bar chart with gradients
[]

Timeline with lines, dates, and text

Timeline with lines, dates, and text
[]

Contour plot of irregularly spaced data

Contour plot of irregularly spaced data
[]

Contouring the solution space of optimizations

Contouring the solution space of optimizations
[]

Curve with error band

Curve with error band
[]

Hexagonal binned plot

Hexagonal binned plot
[]

Boxplots

Boxplots
[]

Nested pie charts

Nested pie charts
[]

Create multiple subplots using plt.subplots

Create multiple subplots using plt.subplots
[]

Axes Demo

Axes Demo
[]

Multiple y-axis with Spines

Multiple y-axis with Spines
[]

Draw regions that span an Axes

Draw regions that span an Axes
[]

Log scale

Log scale
[]

Text properties

Text properties
[]

Annotate plots

Annotate plots
[]

Angle annotations on bracket arrows

Angle annotations on bracket arrows
[]

Artists as annotations

Artists as annotations
[]

Arrow Demo

Arrow Demo
[]

Usetex text baseline

Usetex text baseline
[]

Reference for Matplotlib artists

Reference for Matplotlib artists
[]

Mmh Donuts!!!

Mmh Donuts!!!
[]

Ellipse Demo

Ellipse Demo
[]

Drawing fancy boxes

Drawing fancy boxes
[]

Clip the data to the axes view limits

Clip the data to the axes view limits
[]

3D box surface plot

3D box surface plot
[]

Project contour profiles onto a graph

Project contour profiles onto a graph
[]

Project filled contour onto a graph

Project filled contour onto a graph
[]

Fill under 3D line graphs

Fill under 3D line graphs
[]

2D images in 3D

2D images in 3D
[]

3D stem

3D stem
[]

3D voxel / volumetric plot with RGB colors

3D voxel / volumetric plot with RGB colors
[]

Demo Axes Grid

Demo Axes Grid
[]

Inset locator demo

Inset locator demo
[]

axis_direction demo

axis_direction demo
[]

Parasite Axes demo

Parasite Axes demo
[]

Parasite axis demo

Parasite axis demo
[]

Animated 3D random walk

Animated 3D random walk
[]

Mouse Cursor

Mouse Cursor
[]

Radio Buttons Grid

Radio Buttons Grid
[]

Pick event demo

Pick event demo
[]

Viewlims

Viewlims
[]

Zoom modifies other Axes

Zoom modifies other Axes
[]

Manual Contour

Manual Contour
[]

Plotting with keywords

Plotting with keywords
[]

Patheffect Demo

Patheffect Demo
[]

TickedStroke patheffect

TickedStroke patheffect
[]

Anatomy of a figure

Anatomy of a figure
[]

The Lifecycle of a Plot

The Lifecycle of a Plot
[]

Coding shortcuts

Coding shortcuts
[]

plot(x, y)

plot(x, y)
[]

scatter(x, y)

scatter(x, y)
[]

bar(x, height)

bar(x, height)
[]

stem(x, y)

stem(x, y)
[]

fill_between(x, y1, y2)

fill_between(x, y1, y2)
[]

stackplot(x, y)

stackplot(x, y)
[]

stairs(values)

stairs(values)
[]

hist(x)

hist(x)
[]

boxplot(X)

boxplot(X)
[]

errorbar(x, y, yerr, xerr)

errorbar(x, y, yerr, xerr)
[]

violinplot(D)

violinplot(D)
[]

eventplot(D)

eventplot(D)
[]

hist2d(x, y)

hist2d(x, y)
[]

hexbin(x, y, C)

hexbin(x, y, C)
[]

pie(x)

pie(x)
[]

barbs(X, Y, U, V)

barbs(X, Y, U, V)
[]

quiver(X, Y, U, V)

quiver(X, Y, U, V)
[]

tricontour(x, y, z)

tricontour(x, y, z)
[]

tricontourf(x, y, z)

tricontourf(x, y, z)
[]

tripcolor(x, y, z)

tripcolor(x, y, z)
[]

triplot(x, y)

triplot(x, y)
[]

bar3d(x, y, z, dx, dy, dz)

bar3d(x, y, z, dx, dy, dz)
[]

fill_between(x1, y1, z1, x2, y2, z2)

fill_between(x1, y1, z1, x2, y2, z2)
[]

plot(xs, ys, zs)

plot(xs, ys, zs)
[]

quiver(X, Y, Z, U, V, W)

quiver(X, Y, Z, U, V, W)
[]

scatter(xs, ys, zs)

scatter(xs, ys, zs)
[]

stem(x, y, z)

stem(x, y, z)
[]

plot_surface(X, Y, Z)

plot_surface(X, Y, Z)
[]

plot_trisurf(x, y, z)

plot_trisurf(x, y, z)
[]

voxels([x, y, z], filled)

voxels([x, y, z], filled)
[]

plot_wireframe(X, Y, Z)

plot_wireframe(X, Y, Z)
[]

Animations using Matplotlib

Animations using Matplotlib
[]

Arranging multiple Axes in a Figure

Arranging multiple Axes in a Figure
[]

Annotations

Annotations

Web Proxy Viewer  |  New URL  |  Original Page