matplotlib.patches.Circle#
- class matplotlib.patches.Circle(xy, radius=5, **kwargs)[源代码][源代码]#
基类:
Ellipse
一个圆形补丁。
在中心 xy = (x, y) 处创建一个给定 半径 的真正圆形。
与
CirclePolygon
这种多边形近似不同,这使用了贝塞尔样条,更接近于一个无比例的圆。有效的关键字参数是:
属性
描述
一个过滤函数,它接受一个 (m, n, 3) 的浮点数组和一个 dpi 值,并返回一个 (m, n, 3) 数组和两个从图像左下角开始的偏移量
未知
布尔
抗锯齿
或 aa布尔值或无
CapStyle
或 {'butt', 'projecting', 'round'}BboxBase
或 None布尔
补丁或(路径,变换)或无
edgecolor
或 eccolor or None
facecolor
或 fccolor or None
布尔
str
{'/', '', '|', '-', '+', 'x', 'o', 'O', '.', '*'}
布尔
JoinStyle
或 {'miter', 'round', 'bevel'}对象
线型
或 ls{'-', '--', '-.', ':', '', (偏移, 开-关序列), ...}
linewidth
或 lw浮点数或无
布尔
None 或 bool 或 float 或 callable
布尔
(scale: float, length: float, randomness: float)
布尔值或无
str
布尔
浮动
- property radius#
返回圆的半径。
- set(*, agg_filter=<UNSET>, alpha=<UNSET>, angle=<UNSET>, animated=<UNSET>, antialiased=<UNSET>, capstyle=<UNSET>, center=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, color=<UNSET>, edgecolor=<UNSET>, facecolor=<UNSET>, fill=<UNSET>, gid=<UNSET>, hatch=<UNSET>, height=<UNSET>, in_layout=<UNSET>, joinstyle=<UNSET>, label=<UNSET>, linestyle=<UNSET>, linewidth=<UNSET>, mouseover=<UNSET>, path_effects=<UNSET>, picker=<UNSET>, radius=<UNSET>, rasterized=<UNSET>, sketch_params=<UNSET>, snap=<UNSET>, transform=<UNSET>, url=<UNSET>, visible=<UNSET>, width=<UNSET>, zorder=<UNSET>)[源代码]#
一次性设置多个属性。
支持的属性有
属性
描述
一个过滤函数,它接受一个 (m, n, 3) 的浮点数组和一个 dpi 值,并返回一个 (m, n, 3) 数组和两个从图像左下角开始的偏移量
标量或无
浮动
布尔
抗锯齿
或 aa布尔值或无
CapStyle
或 {'butt', 'projecting', 'round'}(浮点数, 浮点数)
BboxBase
或 None布尔
补丁或(路径,变换)或无
edgecolor
或 eccolor or None
facecolor
或 fccolor or None
布尔
str
{'/', '', '|', '-', '+', 'x', 'o', 'O', '.', '*'}
浮动
布尔
JoinStyle
或 {'miter', 'round', 'bevel'}对象
线型
或 ls{'-', '--', '-.', ':', '', (偏移, 开-关序列), ...}
linewidth
或 lw浮点数或无
布尔
None 或 bool 或 float 或 callable
浮动
布尔
(scale: float, length: float, randomness: float)
布尔值或无
str
布尔
浮动
浮动