Can I give a border (outline) to a line in matplotlib plot function?

后端 未结 3 1241
终归单人心
终归单人心 2020-12-16 14:15

I try:

points = [...]
axe.plot([i[0] for i in points], [i[1] for i in points], linestyle=\'-\', linewidth=10, 
color=\'black\', markeredgewidth=2, markeredge         


        
3条回答
  •  既然无缘
    2020-12-16 14:38

    The more general answer is to use patheffects. Easy outlines and shadows (and other things) for any artist rendered with a path.
    The matplotlib docs (and examples) are quite accessible.

    http://matplotlib.org/users/patheffects_guide.html

    http://matplotlib.org/examples/pylab_examples/patheffect_demo.html

提交回复
热议问题