mpl_toolkits.axisartist.axis_artist.GridlinesCollection#
- class mpl_toolkits.axisartist.axis_artist.GridlinesCollection(*args, which='major', axis='both', **kwargs)[源代码][源代码]#
-
网格线的集合。
- 参数:
- 哪个{"主要", "次要"}
考虑哪个网格。
- 轴
{"both", `"x","y"`}`` 考虑哪个轴。
- *args, **kwargs
传递给
LineCollection。
- draw(renderer)[源代码][源代码]#
使用给定的渲染器绘制艺术家(及其子项)。
如果艺术家不可见(
Artist.get_visible返回 False),则此操作无效。- 参数:
- 渲染器 :
RendererBase子类。RendererBase 子类。
- 渲染器 :
注释
此方法在 Artist 子类中被重写。
- set(*, agg_filter=<UNSET>, alpha=<UNSET>, animated=<UNSET>, antialiased=<UNSET>, array=<UNSET>, axis=<UNSET>, capstyle=<UNSET>, clim=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, cmap=<UNSET>, color=<UNSET>, colors=<UNSET>, edgecolor=<UNSET>, facecolor=<UNSET>, gapcolor=<UNSET>, gid=<UNSET>, grid_helper=<UNSET>, hatch=<UNSET>, in_layout=<UNSET>, joinstyle=<UNSET>, label=<UNSET>, linestyle=<UNSET>, linewidth=<UNSET>, mouseover=<UNSET>, norm=<UNSET>, offset_transform=<UNSET>, offsets=<UNSET>, path_effects=<UNSET>, paths=<UNSET>, picker=<UNSET>, pickradius=<UNSET>, rasterized=<UNSET>, segments=<UNSET>, sketch_params=<UNSET>, snap=<UNSET>, transform=<UNSET>, url=<UNSET>, urls=<UNSET>, verts=<UNSET>, visible=<UNSET>, which=<UNSET>, zorder=<UNSET>)[源代码]#
一次设置多个属性。
支持的属性是
属性
描述
一个过滤函数,它接收一个 (m, n, 3) 浮点数组和一个 dpi 值,并返回一个 (m, n, 3) 数组和两个从图像左下角开始的偏移量
类数组或标量或无
布尔值
抗锯齿或 aa 或 antialiaseds布尔值或布尔值列表
类似数组或 None
{"both", `"x","y"`}``CapStyle或 {'butt', 'projecting', 'round'}(vmin: 浮点数, vmax: 浮点数)
BboxBase或 None布尔值
补丁或(路径,变换)或无
Colormap或 str 或 Noneedgecolor或 ec 或 edgecolorsfacecolor或 facecolors 或 fcstr
{'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'}
布尔值
JoinStyle或 {'miter', 'round', 'bevel'}对象
linestyle或虚线或线型或 lsstr 或 tuple 或其列表
linewidth或 linewidths 或 lw浮点数或浮点数列表
布尔值
Normalize或 str 或 Noneoffset_transform或 transOffset(N, 2) 或 (2,) 数组类
未知
None 或 bool 或 float 或 callable
浮动
布尔值
未知
(scale: float, length: float, randomness: float)
布尔值或无
str
list of str 或 None
未知
布尔值
{"主要", "次要"}
浮动
- set_grid_helper(grid_helper)[源代码][源代码]#
设置网格辅助工具。
- 参数:
- grid_helper :
GridHelperBase子类GridHelperBase 子类
- grid_helper :