Spec-Zone.ru › Matplotlib 3.0

mpl_toolkits.axes_grid1.mpl_axes.Axes

class mpl_toolkits.axes_grid1.mpl_axes.Axes(fig, rect, facecolor=None, frameon=True, sharex=None, sharey=None, label='', xscale=None, yscale=None, **kwargs) [source]

Bases: matplotlib.axes._axes.Axes

Создать ось на графике.

Параметры:
fig : Figure

Ось создается в Figure fig.

rect : [left, bottom, width, height]

Ось создается в прямоугольнике rect. rect задаётся в координатах Figure.

sharex, sharey : Axes, optional

Ось x или y разделена с осью x или y в входном Axes.

frameon : bool, optional

Истинное значение означает, что рамка оси видима.

**kwargs

Другие необязательные ключевые аргументы:

Свойство Описание
adjustable {'box', 'datalim'}
agg_filter функция фильтра, которая принимает массив float (m, n, 3) и значение dpi, и возвращает массив (m, n, 3)
alpha float
anchor 2-кортеж чисел с плавающей точкой или {'C', 'SW', 'S', 'SE', ...}
animated bool
aspect {'auto', 'equal'} или число
autoscale_on bool
autoscalex_on bool
autoscaley_on bool
axes_locator Callable[[Axes, Renderer], Bbox]
axisbelow bool или 'line'
clip_box Bbox
clip_on bool
clip_path [(Path, Transform) | Patch | None]
contains вызываемый объект
facecolor цвет
fc цвет
figure Figure
frame_on bool
gid строка
in_layout bool
label объект
navigate bool
navigate_mode неизвестно
path_effects AbstractPathEffect
picker None или bool или float или вызываемый объект
position [left, bottom, width, height] или Bbox
rasterization_zorder число с плавающей точкой или None
rasterized bool или None
sketch_params (scale: float, length: float, randomness: float)
snap bool или None
title строка
transform Transform
url строка
visible bool
xbound (нижний: float, верхний: float)
xlabel строка
xlim (левый: float, правый: float)
xmargin float больше -0.5
xscale {"линейный", "логарифмический", "симлогифмический", "логит", ...}
xticklabels Список[строка]
xticks список
ybound (нижний: float, верхний: float)
ylabel строка
ylim (нижний: float, верхний: float)
ymargin float больше -0.5
yscale {"линейный", "логарифмический", "симлогический", "логит", ...}
yticklabels Список[строка]
yticks список
zorder число с плавающей точкой
Возвращает:
axes : Axes

Новый объект Axes.

class AxisDict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2) [source]

Базовый класс: dict

axis
cla() [source]

Очистить текущие оси.

Примеры использования mpl_toolkits.axes_grid1.mpl_axes.Axes

../../_images/sphx_glr_demo_axes_divider_thumb.png

Демонстрация Разделителя Осей

../../_images/sphx_glr_demo_fixed_size_axes_thumb.png

Демонстрация Осей Фиксированного Размера

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API