本文簡要介紹 python 語言中 matplotlib.patches.FancyArrowPatch.set_arrowstyle
的用法。
-
設置箭頭樣式,可能還有更多屬性。
以前的箭頭樣式的屬性不會被重用。
如果沒有參數(或使用
arrowstyle=None
),可用的框樣式將作為人類可讀的字符串返回。- 參數:
- arrowstyle str 或
ArrowStyle
-
箭頭的樣式:
ArrowStyle
實例或字符串,它是樣式名稱和可選的逗號分隔屬性(例如"Fancy,head_length=0.2")。這樣的字符串用於構造ArrowStyle
對象,如該類中所述。可以使用以下箭頭樣式:
%(箭頭樣式:table_and_accepts)s
- **kwargs
-
箭頭樣式的附加屬性。有關支持的參數,請參閱上表。
- arrowstyle str 或
例子
set_arrowstyle("Fancy,head_length=0.2") set_arrowstyle("fancy", head_length=0.2)
用法
set_arrowstyle(arrowstyle=None, **kwargs)
相關用法
- Python matplotlib FancyArrowPatch.set_connectionstyle用法及代碼示例
- 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_arrowstyle。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。