matplotlib.patches.Ellipse¶
-
class
matplotlib.patches.
Ellipse
(xy, width, height, angle=0, **kwargs)[源代码]¶ -
无标度椭圆。
参数: - xy(浮标,浮标)
椭圆中心的xy坐标。
- width浮动
水平轴的总长度(直径)。
- height浮动
垂直轴的总长度(直径)。
- angle浮点,默认值:0
逆时针旋转。
笔记
有效的关键字参数为:
财产 描述 agg_filter
一种过滤函数,它接受一个(m,n,3)浮点数组和一个dpi值,并返回一个(m,n,3)数组。 alpha
浮动或无 animated
布尔 antialiased
或者aa未知的 capstyle
“对接”、“圆形”、“突出” clip_box
Bbox
clip_on
布尔 clip_path
面片或(路径、变换)或无 color
颜色 contains
未知的 edgecolor
或ec颜色或无或“自动” facecolor
或fc颜色或无 figure
Figure
fill
布尔 gid
STR hatch
'/'、''、''、'-'、'+'、'X'、'O'、'O'、'、'、'*' in_layout
布尔 joinstyle
'miter'、'round'、'bevel' label
对象 linestyle
或ls'-'、'-'、'-'、'-'、':'、'、'、'(偏移量、开/关顺序)、… linewidth
或lw浮动或无 path_effects
AbstractPathEffect
picker
无、布尔或可呼叫 rasterized
布尔或无 sketch_params
(比例:浮动,长度:浮动,随机性:浮动) snap
布尔或无 transform
Transform
url
STR visible
布尔 zorder
浮动 -
__init__
(xy, width, height, angle=0, **kwargs)[源代码]¶ 参数: - xy(浮标,浮标)
椭圆中心的xy坐标。
- width浮动
水平轴的总长度(直径)。
- height浮动
垂直轴的总长度(直径)。
- angle浮点,默认值:0
逆时针旋转。
笔记
有效的关键字参数为:
财产 描述 agg_filter
一种过滤函数,它接受一个(m,n,3)浮点数组和一个dpi值,并返回一个(m,n,3)数组。 alpha
浮动或无 animated
布尔 antialiased
或者aa未知的 capstyle
“对接”、“圆形”、“突出” clip_box
Bbox
clip_on
布尔 clip_path
面片或(路径、变换)或无 color
颜色 contains
未知的 edgecolor
或ec颜色或无或“自动” facecolor
或fc颜色或无 figure
Figure
fill
布尔 gid
STR hatch
'/'、''、''、'-'、'+'、'X'、'O'、'O'、'、'、'*' in_layout
布尔 joinstyle
'miter'、'round'、'bevel' label
对象 linestyle
或ls'-'、'-'、'-'、'-'、':'、'、'、'(偏移量、开/关顺序)、… linewidth
或lw浮动或无 path_effects
AbstractPathEffect
picker
无、布尔或可呼叫 rasterized
布尔或无 sketch_params
(比例:浮动,长度:浮动,随机性:浮动) snap
布尔或无 transform
Transform
url
STR visible
布尔 zorder
浮动
-
__module__
= 'matplotlib.patches'¶
-
property
angle
¶ 返回椭圆的角度。
-
property
center
¶ 返回椭圆的中心。
-
get_patch_transform
()[源代码]¶ 返回
Transform
实例将面片坐标映射到数据坐标。例如,可以通过为单位圆提供坐标来定义表示半径为5的圆的面片,以及将坐标(面片坐标)缩放5的变换。
-
property
height
¶ 返回椭圆的高度。
-
property
width
¶ 返回椭圆的宽度。