mpl_toolkits.axisartist.axislines.AxesZero#
- class mpl_toolkits.axisartist.axislines.AxesZero(*args, grid_helper=None, **kwargs)[源]#
基类:
Axes
在图中构建一个 Axes。
- 参数:
- fig
Figure
坐标轴创建于
Figure
fig 中。- *args
*args
可以是一个(left, bottom, width, height)
矩形,或者是一个Bbox
。这指定了坐标轴在图像坐标中的位置矩形。*args
也可以由三个数字或一个三位数组成;在后一种情况下,这些数字被视为独立的数字。这些数字被解释为(nrows, ncols, index)
:(nrows, ncols)
指定了子图数组的大小,而index
是正在创建的子图的 1 基索引。最后,*args
也可以直接是一个SubplotSpec
实例。- sharex, sharey
Axes
, 可选 x 轴或 y 轴与输入
Axes
中的 x 轴或 y 轴共享。请注意,无法取消共享坐标轴。- frameonbool,默认值:True
Axes 框架是否可见。
- box_aspectfloat,可选
为坐标轴框设置固定纵横比,即高度与宽度的比率。详情请参阅
set_box_aspect
。- forward_navigation_eventsbool 或 "auto",默认值:"auto"
控制平移/缩放事件是否传递给其下方的 Axes。"auto" 表示对于具有不可见补丁的轴为 True,否则为 False。
- **kwargs
其他可选关键字参数
属性
描述
{'box', 'datalim'}
一个过滤函数,它接受一个 (m, n, 3) 浮点数组和一个 dpi 值,并返回一个 (m, n, 3) 数组以及图像左下角的两个偏移量
浮点数或 None
(float, float) 或 {'C', 'SW', 'S', 'SE', 'E', 'NE', ...}
布尔值
{'auto', 'equal'} 或 float
布尔值
未知
未知
Callable[[Axes, Renderer], Bbox]
布尔值 或 'line'
浮点数或 None
BboxBase
或 None布尔值
Patch 或 (Path, Transform) 或 None
bool 或 "auto"
布尔值
str
布尔值
object
布尔值
布尔值
未知
list of
AbstractPathEffect
None 或 布尔值 或 浮点数 或 可调用对象
[left, bottom, width, height] 或
Bbox
浮点数或 None
布尔值
(scale: 浮点数, length: 浮点数, randomness: 浮点数)
布尔值或 None
未知
str
str
布尔值
(lower: float, upper: float)
str
(left: float, right: float)
float 大于 -0.5
未知
未知
未知
(lower: float, upper: float)
str
(bottom: float, top: float)
float 大于 -0.5
未知
未知
未知
浮点数
- fig
- 返回:
- 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>)[源]#
一次性设置多个属性。
支持的属性包括:
属性
描述
{'box', 'datalim'}
一个过滤函数,它接受一个 (m, n, 3) 浮点数组和一个 dpi 值,并返回一个 (m, n, 3) 数组以及图像左下角的两个偏移量
浮点数或 None
(float, float) 或 {'C', 'SW', 'S', 'SE', 'E', 'NE', ...}
布尔值
{'auto', 'equal'} 或 float
布尔值
未知
未知
Callable[[Axes, Renderer], Bbox]
布尔值 或 'line'
浮点数或 None
BboxBase
或 None布尔值
Patch 或 (Path, Transform) 或 None
bool 或 "auto"
布尔值
str
布尔值
object
布尔值
布尔值
未知
list of
AbstractPathEffect
None 或 布尔值 或 浮点数 或 可调用对象
[left, bottom, width, height] 或
Bbox
浮点数或 None
布尔值
(scale: 浮点数, length: 浮点数, randomness: 浮点数)
布尔值或 None
未知
str
str
布尔值
(lower: float, upper: float)
str
(left: float, right: float)
float 大于 -0.5
未知
未知
未知
(lower: float, upper: float)
str
(bottom: float, top: float)
float 大于 -0.5
未知
未知
未知
浮点数