matplotlib.patches.ArrowStyle¶
-
class
matplotlib.patches.
ArrowStyle
(stylename, **kw)[源代码]¶ 基类:
matplotlib.patches._Style
ArrowStyle
是一个容器类,它定义了几个箭头样式类,用于沿给定路径创建箭头路径。这些主要用于FancyArrowPatch
.箭头样式对象可以创建为::
ArrowStyle.Fancy(head_length=.4, head_width=.4, tail_width=.4)
或:
ArrowStyle("Fancy", head_length=.4, head_width=.4, tail_width=.4)
或:
ArrowStyle("Fancy, head_length=.4, head_width=.4, tail_width=.4")
定义了以下类
等级 名字 阿特斯 曲线 -
没有 克利维 ->
头部长度=0.4,头部宽度=0.2 布雷克特 -[
宽度b=1.0,长度b=0.2,角度b=无 CurvFieldB -|>
头部长度=0.4,头部宽度=0.2 柯维亚 <-
头部长度=0.4,头部宽度=0.2 克利韦布 <->
头部长度=0.4,头部宽度=0.2 克利夫里德拉 <|-
头部长度=0.4,头部宽度=0.2 CurrFieldAB <|-|>
头部长度=0.4,头部宽度=0.2 布雷克塔 ]-
宽度=1.0,长度=0.2,角度=无 布雷克塔布 ]-[
宽度=1.0,长度=0.2,角度A=无,宽度B=1.0,长度B=0.2,角度B=无 Fancy fancy
头部长度=0.4,头部宽度=0.4,尾部宽度=0.4 简单的 simple
头部长度=0.5,头部宽度=0.5,尾部宽度=0.2 楔形 wedge
尾宽=0.3,收缩系数=0.5 巴拉布 |-|
widtha=1.0,anglea=none,widthb=1.0,angleb=none 任何箭头样式类的实例都是可调用对象,其调用签名为:
__call__(self, path, mutation_size, linewidth, aspect_ratio=1.)
它返回一个
Path
实例和布尔值。 path 是一个Path
绘制箭头的实例。 mutation_size 和 aspect_ratio 与中的含义相同BoxStyle
. 线宽 是要删除的线条宽度。这是用来纠正头部的位置,使其不超过目标点,但并非所有类都支持它。使用给定的样式名返回子类的实例。
-
class
BarAB
(widthA=1.0, angleA=None, widthB=1.0, angleB=None)[源代码]¶ 基类:
matplotlib.patches.ArrowStyle._Bracket
带竖线的箭头
|
在两端。参数: - widthA浮动,默认值:1.0
支架的宽度。
- angleA浮点,默认值:无
支架和线之间的角度。
- widthB浮动,默认值:1.0
支架的宽度。
- angleB浮点,默认值:无
支架和线之间的角度。
-
__init__
(widthA=1.0, angleA=None, widthB=1.0, angleB=None)[源代码]¶ 参数: - widthA浮动,默认值:1.0
支架的宽度。
- angleA浮点,默认值:无
支架和线之间的角度。
- widthB浮动,默认值:1.0
支架的宽度。
- angleB浮点,默认值:无
支架和线之间的角度。
-
__module__
= 'matplotlib.patches'¶
-
class
BracketA
(widthA=1.0, lengthA=0.2, angleA=None)[源代码]¶ 基类:
matplotlib.patches.ArrowStyle._Bracket
开始处有一个外方括号的箭头。
参数: - widthA浮动,默认值:1.0
支架的宽度。
- lengthA浮动,默认值:0.2
支架的长度。
- angleA浮点,默认值:无
支架和线之间的角度。
-
__init__
(widthA=1.0, lengthA=0.2, angleA=None)[源代码]¶ 参数: - widthA浮动,默认值:1.0
支架的宽度。
- lengthA浮动,默认值:0.2
支架的长度。
- angleA浮点,默认值:无
支架和线之间的角度。
-
__module__
= 'matplotlib.patches'¶
-
class
BracketAB
(widthA=1.0, lengthA=0.2, angleA=None, widthB=1.0, lengthB=0.2, angleB=None)[源代码]¶ 基类:
matplotlib.patches.ArrowStyle._Bracket
两端有外方括号的箭头。
参数: - widthA浮动,默认值:1.0
支架的宽度。
- lengthA浮动,默认值:0.2
支架的长度。
- angleA浮点,默认值:无
支架和线之间的角度。
- widthB浮动,默认值:1.0
支架的宽度。
- lengthB浮动,默认值:0.2
支架的长度。
- angleB浮点,默认值:无
支架和线之间的角度。
-
__init__
(widthA=1.0, lengthA=0.2, angleA=None, widthB=1.0, lengthB=0.2, angleB=None)[源代码]¶ 参数: - widthA浮动,默认值:1.0
支架的宽度。
- lengthA浮动,默认值:0.2
支架的长度。
- angleA浮点,默认值:无
支架和线之间的角度。
- widthB浮动,默认值:1.0
支架的宽度。
- lengthB浮动,默认值:0.2
支架的长度。
- angleB浮点,默认值:无
支架和线之间的角度。
-
__module__
= 'matplotlib.patches'¶
-
class
BracketB
(widthB=1.0, lengthB=0.2, angleB=None)[源代码]¶ 基类:
matplotlib.patches.ArrowStyle._Bracket
末端有外方括号的箭头。
参数: - widthB浮动,默认值:1.0
支架的宽度。
- lengthB浮动,默认值:0.2
支架的长度。
- angleB浮点,默认值:无
支架和线之间的角度。
-
__init__
(widthB=1.0, lengthB=0.2, angleB=None)[源代码]¶ 参数: - widthB浮动,默认值:1.0
支架的宽度。
- lengthB浮动,默认值:0.2
支架的长度。
- angleB浮点,默认值:无
支架和线之间的角度。
-
__module__
= 'matplotlib.patches'¶
-
class
Curve
[源代码]¶ 基类:
matplotlib.patches.ArrowStyle._Curve
没有箭头的简单曲线。
如果 贝吉纳罗 和/或 结束箭头 是真的。 head_length 和 head_width 确定箭头相对于 突变量表 . 如果fillbegin(或fillend)为真,则开始(或结束)处的箭头将闭合。
-
__init__
()[源代码]¶ 如果 贝吉纳罗 和/或 结束箭头 是真的。 head_length 和 head_width 确定箭头相对于 突变量表 . 如果fillbegin(或fillend)为真,则开始(或结束)处的箭头将闭合。
-
__module__
= 'matplotlib.patches'¶
-
-
class
CurveA
(head_length=0.4, head_width=0.2)[源代码]¶ 基类:
matplotlib.patches.ArrowStyle._Curve
以头部为起点的箭头。
参数: - head_length浮动,默认值:0.4
箭头的长度。
- head_width浮动,默认值:0.2
箭头的宽度。
-
__init__
(head_length=0.4, head_width=0.2)[源代码]¶ 参数: - head_length浮动,默认值:0.4
箭头的长度。
- head_width浮动,默认值:0.2
箭头的宽度。
-
__module__
= 'matplotlib.patches'¶
-
class
CurveAB
(head_length=0.4, head_width=0.2)[源代码]¶ 基类:
matplotlib.patches.ArrowStyle._Curve
在起点和终点都有头的箭头。
参数: - head_length浮动,默认值:0.4
箭头的长度。
- head_width浮动,默认值:0.2
箭头的宽度。
-
__init__
(head_length=0.4, head_width=0.2)[源代码]¶ 参数: - head_length浮动,默认值:0.4
箭头的长度。
- head_width浮动,默认值:0.2
箭头的宽度。
-
__module__
= 'matplotlib.patches'¶
-
class
CurveB
(head_length=0.4, head_width=0.2)[源代码]¶ 基类:
matplotlib.patches.ArrowStyle._Curve
末端有头的箭头。
参数: - head_length浮动,默认值:0.4
箭头的长度。
- head_width浮动,默认值:0.2
箭头的宽度。
-
__init__
(head_length=0.4, head_width=0.2)[源代码]¶ 参数: - head_length浮动,默认值:0.4
箭头的长度。
- head_width浮动,默认值:0.2
箭头的宽度。
-
__module__
= 'matplotlib.patches'¶
-
class
CurveFilledA
(head_length=0.4, head_width=0.2)[源代码]¶ 基类:
matplotlib.patches.ArrowStyle._Curve
在开始处有填充三角形头部的箭头。
参数: - head_length浮动,默认值:0.4
箭头的长度。
- head_width浮动,默认值:0.2
箭头的宽度。
-
__init__
(head_length=0.4, head_width=0.2)[源代码]¶ 参数: - head_length浮动,默认值:0.4
箭头的长度。
- head_width浮动,默认值:0.2
箭头的宽度。
-
__module__
= 'matplotlib.patches'¶
-
class
CurveFilledAB
(head_length=0.4, head_width=0.2)[源代码]¶ 基类:
matplotlib.patches.ArrowStyle._Curve
两端有填充三角形头的箭头。
参数: - head_length浮动,默认值:0.4
箭头的长度。
- head_width浮动,默认值:0.2
箭头的宽度。
-
__init__
(head_length=0.4, head_width=0.2)[源代码]¶ 参数: - head_length浮动,默认值:0.4
箭头的长度。
- head_width浮动,默认值:0.2
箭头的宽度。
-
__module__
= 'matplotlib.patches'¶
-
class
CurveFilledB
(head_length=0.4, head_width=0.2)[源代码]¶ 基类:
matplotlib.patches.ArrowStyle._Curve
末端有填充三角形头的箭头。
参数: - head_length浮动,默认值:0.4
箭头的长度。
- head_width浮动,默认值:0.2
箭头的宽度。
-
__init__
(head_length=0.4, head_width=0.2)[源代码]¶ 参数: - head_length浮动,默认值:0.4
箭头的长度。
- head_width浮动,默认值:0.2
箭头的宽度。
-
__module__
= 'matplotlib.patches'¶
-
class
Fancy
(head_length=0.4, head_width=0.4, tail_width=0.4)[源代码]¶ 基类:
matplotlib.patches.ArrowStyle._Base
花哨的箭只适用于二次贝塞尔曲线。
参数: - head_length浮动,默认值:0.4
箭头的长度。
- head_width浮动,默认值:0.4
箭头的宽度。
- tail_width浮动,默认值:0.4
箭头尾的宽度。
-
__init__
(head_length=0.4, head_width=0.4, tail_width=0.4)[源代码]¶ 参数: - head_length浮动,默认值:0.4
箭头的长度。
- head_width浮动,默认值:0.4
箭头的宽度。
- tail_width浮动,默认值:0.4
箭头尾的宽度。
-
__module__
= 'matplotlib.patches'¶
-
class
Simple
(head_length=0.5, head_width=0.5, tail_width=0.2)[源代码]¶ 基类:
matplotlib.patches.ArrowStyle._Base
一个简单的箭头。只适用于二次贝塞尔曲线。
参数: - head_length浮动,默认值:0.5
箭头的长度。
- head_width浮动,默认值:0.5
箭头的宽度。
- tail_width浮动,默认值:0.2
箭头尾的宽度。
-
__init__
(head_length=0.5, head_width=0.5, tail_width=0.2)[源代码]¶ 参数: - head_length浮动,默认值:0.5
箭头的长度。
- head_width浮动,默认值:0.5
箭头的宽度。
- tail_width浮动,默认值:0.2
箭头尾的宽度。
-
__module__
= 'matplotlib.patches'¶
-
class
Wedge
(tail_width=0.3, shrink_factor=0.5)[源代码]¶ 基类:
matplotlib.patches.ArrowStyle._Base
楔(?)形状。只适用于二次贝塞尔曲线。开始点的宽度为尾部宽度,结束点的宽度为0。在中间,宽度是收缩系数*尾部宽度。
参数: - tail_width浮点,默认值:0.3
尾巴的宽度。
- shrink_factor浮动,默认值:0.5
中点处箭头宽度的分数。
-
__init__
(tail_width=0.3, shrink_factor=0.5)[源代码]¶ 参数: - tail_width浮点,默认值:0.3
尾巴的宽度。
- shrink_factor浮动,默认值:0.5
中点处箭头宽度的分数。
-
__module__
= 'matplotlib.patches'¶
-
__module__
= 'matplotlib.patches'¶
-
class