Hi all,
Last night, I committed a patch to support what I'm calling a
patheffect. You may think of it as a customization of the
Renderer.draw_path method.
I added an example "patheffect_demo.py" and its output is attached.
Actually, this is nothing new, and mpl already can do these kind of
thing. What I wanted with the patheffects feature is to make it more
easy (especially with Text). And something like below is what I came
up with.
txt = ax1.annotate("test", (1., 1.)), (0., 0),
txt.set_path_effects([PathEffects.withStroke(linewidth=3, foreground="w")])
I'm not quite sure if the current API is optimal and I'll appreciate
any API suggestions.
Regards,
-JJ