matplotlib / 3.5.1 / _as_gen / mpl_toolkits.axes_grid1.mpl_axes.simpleaxisartist.html /

mpl_toolkits.axes_grid1.mpl_axes.SimpleAxisArtist

class mpl_toolkits.axes_grid1.mpl_axes. SimpleAxisArtist ( axis, axisnum, spine ) [source]

Bases: matplotlib.artist.Artist

property label
property major_ticklabels
property major_ticks
set ( *, agg_filter=<UNSET>, alpha=<UNSET>, animated=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, gid=<UNSET>, in_layout=<UNSET>, label=<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

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

unknown

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

unknown

zorder

float

set_label ( txt ) [source]

Set a label that will be displayed in the legend.

Parameters
s object

s will be converted to a string by calling str.

set_visible ( b ) [source]

Set the artist's visibility.

Parameters
b bool
toggle ( all=None, ticks=None, ticklabels=None, label=None ) [source]

© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/mpl_toolkits.axes_grid1.mpl_axes.SimpleAxisArtist.html