我们从Python开源项目中,提取了以下1个代码示例,用于说明如何使用matplotlib.patheffects()。
def sticker(t, a, x=0, y=0, ha='left', va='bottom', transform=None, **kwargs): if not transform: transform=a.transAxes o = list() colorin=['None','None'] for i,c in enumerate(['w','k']): o.append( a.text(x,y,t, fontweight='bold', zorder=999,# alpha=0.4, color=colorin[i], ha=ha,va=va, #fontsize='large', transform=transform, path_effects=[matplotlib.patheffects.withStroke(linewidth=1.5-i, foreground=c)], **kwargs)) return o