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

后端 未结 3 1245
终归单人心
终归单人心 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:35

    Just plot the line twice with different thicknesses:

    axe.plot([i[0] for i in points], [i[1] for i in points], linestyle='-', linewidth=10, 
    color='green')
    axe.plot([i[0] for i in points], [i[1] for i in points], linestyle='-', linewidth=5, 
    color='black')
    

提交回复
热议问题