mpl_toolkits.axes_grid1.mpl_axes.SimpleAxisArtist#

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

Bases:Artist

draw(renderer)[source]#

Draw the Artist (and its children) using the given renderer.

This has no effect if the artist is not visible (Artist.get_visiblereturns False).

Parameters:
rendererRendererBase subclass.

Notes

This method is overridden in the Artist subclasses.

propertylabel#
propertymajor_ticklabels#
propertymajor_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

float or None

animated

bool

clip_box

BboxBase or None

clip_on

bool

clip_path

Patch or (Path, Transform) or None

figure

Figure orSubFigure

gid

str

in_layout

bool

label

unknown

mouseover

bool

path_effects

list ofAbstractPathEffect

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 callingstr.

set_visible(b)[source]#

Set the artist's visibility.

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