本文简要介绍 python 语言中 matplotlib.patheffects.withSimplePatchShadow
的用法。
-
基础:
SimplePatchShadow
用于应用
SimplePatchShadow
然后绘制原始艺术家的快捷方式PathEffect。有了这个类,你可以使用
artist.set_path_effects([patheffects.withSimplePatchShadow()])
作为快捷方式
artist.set_path_effects([patheffects.SimplePatchShadow(), patheffects.Normal()])
- 参数:
- offset (浮点数,浮点数),默认值:(2,-2)
-
阴影的 (x, y) 偏移量,以点为单位。
- shadow_rgbFace 颜色
-
阴影颜色。
- alpha 浮点数,默认:0.3
-
创建的阴影补丁的 Alpha 透明度。
- rho 浮点数,默认:0.3
-
如果未指定
shadow_rgbFace
,则应用于 rgbFace 颜色的比例因子。 - **kwargs
-
额外的关键字被存储并传递给
AbstractPathEffect._update_gc()
。
用法
class matplotlib.patheffects.withSimplePatchShadow(offset=(2, -2), shadow_rgbFace=None, alpha=None, rho=0.3, **kwargs)
相关用法
- Python matplotlib withStroke用法及代码示例
- Python matplotlib withTickedStroke用法及代码示例
- 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.withSimplePatchShadow。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。