本文簡要介紹 python 語言中 matplotlib.patheffects.withTickedStroke
的用法。
-
基礎:
TickedStroke
用於應用
TickedStroke
然後繪製原始藝術家的快捷方式PathEffect。有了這個類,你可以使用
artist.set_path_effects([patheffects.withTickedStroke()])
作為快捷方式
artist.set_path_effects([patheffects.TickedStroke(), patheffects.Normal()])
- 參數:
- offset (float, float),默認值:(0, 0)
-
應用於路徑的 (x, y) 偏移量,以點為單位。
- spacing 浮點數,默認值:10.0
-
刻度之間的間距(以點為單位)。
- angle 浮點數,默認值:45.0
-
路徑與刻度之間的角度(以度為單位)。該角度的測量方式就像您是一隻沿著曲線行走的螞蟻一樣,0 度指向正前方,90 度指向您的左側,-90 度指向您的右側,180 度指向您的後方。要更改刻度線的一側,請更改角度的符號。
- length 浮點數,默認值:1.414
-
刻度相對於間距的長度。推薦長度 = 1.414 (sqrt(2)),當角度=45,長度=1.0,當角度=90,長度=2.0,當角度=60。
- **kwargs
-
額外的關鍵字被存儲並傳遞給
AbstractPathEffect._update_gc()
。
例子
請參閱TickedStroke 路徑效果。
用法
class matplotlib.patheffects.withTickedStroke(offset=(0, 0), spacing=10.0, angle=45.0, length=1.4142135623730951, **kwargs)
相關用法
- Python matplotlib withSimplePatchShadow用法及代碼示例
- Python matplotlib withStroke用法及代碼示例
- Python matplotlib warn_deprecated用法及代碼示例
- Python matplotlib axvspan用法及代碼示例
- Python matplotlib Axes.get_legend_handles_labels用法及代碼示例
- Python matplotlib AbstractMovieWriter用法及代碼示例
- Python matplotlib triplot用法及代碼示例
- Python matplotlib StarPolygonCollection.set_hatch用法及代碼示例
- Python matplotlib Axes.hist用法及代碼示例
- Python matplotlib boxplot用法及代碼示例
- Python matplotlib subplots用法及代碼示例
- Python matplotlib InsetPosition用法及代碼示例
- Python matplotlib ToolManager.toolmanager_disconnect用法及代碼示例
- Python matplotlib Figure.set_size_inches用法及代碼示例
- Python matplotlib figlegend用法及代碼示例
- Python matplotlib Axes.step用法及代碼示例
- Python matplotlib Axes.contour用法及代碼示例
- Python matplotlib LassoSelector用法及代碼示例
- Python matplotlib BrokenBarHCollection.set_hatch用法及代碼示例
- Python matplotlib Axes.plot用法及代碼示例
- Python matplotlib Axes.semilogx用法及代碼示例
- Python matplotlib Axes.semilogy用法及代碼示例
- Python matplotlib MovieWriterRegistry.register用法及代碼示例
- Python matplotlib PolyQuadMesh.set_hatch用法及代碼示例
- Python matplotlib Text.set_bbox用法及代碼示例
注:本文由純淨天空篩選整理自skytowner.com大神的英文原創作品 matplotlib.patheffects.withTickedStroke。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。