matplotlib.patches.PathPatch

class matplotlib.patches.PathPatch(path, **kwargs)[源代码]

基类:matplotlib.patches.Patch

一个普通的多曲线路径补丁。

path 是一个 Path 对象。

有效的关键字参数为:

财产 描述
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__(path, **kwargs)[源代码]

path 是一个 Path 对象。

有效的关键字参数为:

财产 描述
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'
__str__()[源代码]

返回str(self)。

get_path()[源代码]

返回此修补程序的路径。

set_path(path)[源代码]