本文簡要介紹 python 語言中matplotlib.patches.FancyArrowPatch.set_connectionstyle
的用法。
-
設置連接樣式,可能還有更多屬性。
不會重用先前連接樣式的屬性。
如果沒有參數(或使用
connectionstyle=None
),可用的框樣式將作為人類可讀的字符串返回。- 參數:
- connectionstyle str 或
ConnectionStyle
-
連接的樣式:
ConnectionStyle
實例或字符串,它是樣式名稱和可選的逗號分隔屬性(例如"Arc,armA=30,rad=10")。這樣的字符串用於構造ConnectionStyle
對象,如該類中所述。可以使用以下連接方式:
類
名字
屬性
Arc3
arc3
弧度=0.0
Angle3
angle3
角度A=90,角度B=0
Angle
angle
角度A=90,角度B=0,弧度=0.0
Arc
arc
角度A=0,角度B=0,臂A=無,臂B=無,弧度=0.0
Bar
bar
armA=0.0,armB=0.0,分數=0.3,角度=無
- **kwargs
-
連接樣式的附加屬性。有關支持的參數,請參閱上表。
- connectionstyle str 或
例子
set_connectionstyle("Arc,armA=30,rad=10") set_connectionstyle("arc", armA=30, rad=10)
用法
set_connectionstyle(connectionstyle=None, **kwargs)
相關用法
- Python matplotlib FancyArrowPatch.set_arrowstyle用法及代碼示例
- Python matplotlib FancyBboxPatch.set_boxstyle用法及代碼示例
- Python matplotlib FancyBboxPatch.set_bounds用法及代碼示例
- Python matplotlib Figure.set_size_inches用法及代碼示例
- Python matplotlib FontManager用法及代碼示例
- Python matplotlib Figure.add_axes用法及代碼示例
- Python matplotlib FigureBase.subplots用法及代碼示例
- Python matplotlib FigureBase.align_ylabels用法及代碼示例
- Python matplotlib FigureBase.align_xlabels用法及代碼示例
- Python matplotlib FigureBase.add_axes用法及代碼示例
- Python matplotlib FigureMpl用法及代碼示例
- Python matplotlib FigureBase.legend用法及代碼示例
- Python matplotlib FigureCanvasBase.mpl_connect用法及代碼示例
- Python matplotlib Figure.figimage用法及代碼示例
- Python matplotlib Figure.add_subplot用法及代碼示例
- Python matplotlib Figure.legend用法及代碼示例
- Python matplotlib FigureBase.sticky_edges用法及代碼示例
- Python matplotlib FigureCanvasBase.mpl_disconnect用法及代碼示例
- Python matplotlib FigureBase.add_subplot用法及代碼示例
- Python matplotlib Figure.savefig用法及代碼示例
- Python matplotlib Figure.colorbar用法及代碼示例
- Python matplotlib Figure.add_gridspec用法及代碼示例
- Python matplotlib Figure.sticky_edges用法及代碼示例
- Python matplotlib FigureBase.colorbar用法及代碼示例
- Python matplotlib FigureCanvasBase.new_timer用法及代碼示例
注:本文由純淨天空篩選整理自skytowner.com大神的英文原創作品 matplotlib.patches.FancyArrowPatch.set_connectionstyle。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。