matplotlib.axes.Axes.set#

Axes.set(*, adjustable=<UNSET>, agg_filter=<UNSET>, alpha=<UNSET>, anchor=<UNSET>, animated=<UNSET>, aspect=<UNSET>, autoscale_on=<UNSET>, autoscalex_on=<UNSET>, autoscaley_on=<UNSET>, axes_locator=<UNSET>, axisbelow=<UNSET>, box_aspect=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, facecolor=<UNSET>, forward_navigation_events=<UNSET>, frame_on=<UNSET>, gid=<UNSET>, in_layout=<UNSET>, label=<UNSET>, mouseover=<UNSET>, navigate=<UNSET>, path_effects=<UNSET>, picker=<UNSET>, position=<UNSET>, prop_cycle=<UNSET>, rasterization_zorder=<UNSET>, rasterized=<UNSET>, sketch_params=<UNSET>, snap=<UNSET>, subplotspec=<UNSET>, title=<UNSET>, transform=<UNSET>, url=<UNSET>, visible=<UNSET>, xbound=<UNSET>, xlabel=<UNSET>, xlim=<UNSET>, xmargin=<UNSET>, xscale=<UNSET>, xticklabels=<UNSET>, xticks=<UNSET>, ybound=<UNSET>, ylabel=<UNSET>, ylim=<UNSET>, ymargin=<UNSET>, yscale=<UNSET>, yticklabels=<UNSET>, yticks=<UNSET>, zorder=<UNSET>)[source]#

Set multiple properties at once.

Supported properties are

Property

Description

adjustable

{'box', 'datalim'}

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

anchor

(float, float) or {'C', 'SW', 'S', 'SE', 'E', 'NE', ...}

animated

bool

aspect

{'auto', 'equal'} or float

autoscale_on

bool

autoscalex_on

unknown

autoscaley_on

unknown

axes_locator

Callable[[Axes, Renderer], Bbox]

axisbelow

bool or 'line'

box_aspect

float or None

clip_box

BboxBase or None

clip_on

bool

clip_path

Patch or (Path, Transform) or None

facecolor or fc

color

figure

Figure or SubFigure

forward_navigation_events

bool or "auto"

frame_on

bool

gid

str

in_layout

bool

label

object

mouseover

bool

navigate

bool

navigate_mode

unknown

path_effects

list of AbstractPathEffect

picker

None or bool or float or callable

position

[left, bottom, width, height] or Bbox

prop_cycle

Cycler

rasterization_zorder

float or None

rasterized

bool

sketch_params

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

snap

bool or None

subplotspec

unknown

title

str

transform

Transform

url

str

visible

bool

xbound

(lower: float, upper: float)

xlabel

str

xlim

(left: float, right: float)

xmargin

float greater than -0.5

xscale

unknown

xticklabels

unknown

xticks

unknown

ybound

(lower: float, upper: float)

ylabel

str

ylim

(bottom: float, top: float)

ymargin

float greater than -0.5

yscale

unknown

yticklabels

unknown

yticks

unknown

zorder

float

Examples using matplotlib.axes.Axes.set#

Animated 3D random walk

Animated 3D random walk

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

Pick event demo

Pick event demo

Viewlims

Viewlims

Zoom modifies other Axes

Zoom modifies other Axes

Contour plot of irregularly spaced data

Contour plot of irregularly spaced data

Infinite lines

Infinite lines

Bar chart with labels

Bar chart with labels

Curve with error band

Curve with error band

Bar chart with gradients

Bar chart with gradients

Line plot

Line plot

Timeline with lines, dates, and text

Timeline with lines, dates, and text

Manual Contour

Manual Contour

Plotting with keywords

Plotting with keywords

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

Nested pie charts

Nested pie charts

Log scale

Log scale

Reference for Matplotlib artists

Reference for Matplotlib artists

Ellipse Demo

Ellipse Demo

Drawing fancy boxes

Drawing fancy boxes

Multiple y-axis with Spines

Multiple y-axis with Spines

Boxplots

Boxplots

Hexagonal binned plot

Hexagonal binned plot

Axes Demo

Axes Demo

Draw regions that span an Axes

Draw regions that span an Axes

Create multiple subplots using plt.subplots

Create multiple subplots using plt.subplots

Angle annotations on bracket arrows

Angle annotations on bracket arrows

Annotate plots

Annotate plots

Arrow Demo

Arrow Demo

Text properties

Text properties

Usetex text baseline

Usetex text baseline

Nested GridSpecs

Nested GridSpecs

Mouse Cursor

Mouse Cursor

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)

barbs(X, Y, U, V)

barbs(X, Y, U, V)

quiver(X, Y, U, V)

quiver(X, Y, U, V)

bar(x, height)

bar(x, height)

fill_between(x, y1, y2)

fill_between(x, y1, y2)

plot(x, y)

plot(x, y)

scatter(x, y)

scatter(x, y)

stackplot(x, y)

stackplot(x, y)

stairs(values)

stairs(values)

stem(x, y)

stem(x, y)

boxplot(X)

boxplot(X)

errorbar(x, y, yerr, xerr)

errorbar(x, y, yerr, xerr)

eventplot(D)

eventplot(D)

hexbin(x, y, C)

hexbin(x, y, C)

hist2d(x, y)

hist2d(x, y)

hist(x)

hist(x)

pie(x)

pie(x)

violinplot(D)

violinplot(D)

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)

The Lifecycle of a Plot

The Lifecycle of a Plot

Animations using Matplotlib

Animations using Matplotlib

Arranging multiple Axes in a Figure

Arranging multiple Axes in a Figure

Annotations

Annotations