matplotlib: make plus sign thicker

后端 未结 2 1871
一整个雨季
一整个雨季 2020-12-13 17:03

In Matplotlib, I would like to draw a thick plus sign (or a cross), but the one provided in the marker set is too thin.

Even as I i

相关标签:
2条回答
  • 2020-12-13 17:44

    Use markeredgewidth in connection with markersize.

    0 讨论(0)
  • You can use markeredgewidth (or mew). You'll want to combine it with markersize, otherwise you get thick but tiny markers.

    For example:

    plt.plot([2,4,6,1,3,5], '+', mew=10, ms=20)
    

    enter image description here

    0 讨论(0)
提交回复
热议问题