Suggestions to plot overlapping lines in matplotlib?

后端 未结 3 982
清歌不尽
清歌不尽 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:11

    imagine your panda data frame is called respone_times, then you can use alpha to set different opacity for your graphs. Check the picture before and after using alpha.

    plt.figure(figsize=(15, 7))
    plt.plot(respone_times,alpha=0.5)
    plt.title('a sample title')
    plt.grid(True)
    plt.show()
    

提交回复
热议问题