當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Python matplotlib withStroke用法及代碼示例

本文簡要介紹 python 語言中 matplotlib.patheffects.withStroke 的用法。

用法

class matplotlib.patheffects.withStroke(offset=(0, 0), **kwargs)

基礎:Stroke

用於應用Stroke然後繪製原始藝術家的快捷方式PathEffect。

有了這個類,你可以使用

artist.set_path_effects([patheffects.withStroke()])

作為快捷方式

artist.set_path_effects([patheffects.Stroke(),
                         patheffects.Normal()])

路徑將使用給定的關鍵字參數更新其 gc,即,關鍵字參數應該是有效的 gc 參數值。

相關用法


注:本文由純淨天空篩選整理自skytowner.com大神的英文原創作品 matplotlib.patheffects.withStroke。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。