mpl_toolkits.axes_grid1.mpl_axes.SimpleAxisArtist#

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

Bases: 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>, 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

unknown

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

unknown

zorder

float

set_label(txt)[source]#

Set a label that will be displayed in the legend.

Parameters:
sobject

s will be converted to a string by calling str.

set_visible(b)[source]#

Set the artist's visibility.

Parameters:
bbool
toggle(all=None, ticks=None, ticklabels=None, label=None)[source]#