Suggestions to plot overlapping lines in matplotlib?

后端 未结 3 1017
清歌不尽
清歌不尽 2020-12-09 17:46

Does anybody have a suggestion on what\'s the best way to present overlapping lines on a plot? I have a lot of them, and I had the idea of having full lines of different col

3条回答
  •  盖世英雄少女心
    2020-12-09 18:14

    Just decrease the opacity of the lines so that they are see-through. You can achieve that using the alpha variable. Example:

    plt.plot(x, y, alpha=0.7)

    Where alpha ranging from 0-1, with 0 being invisible.

提交回复
热议问题