Simple line plots using seaborn

前端 未结 3 1619
渐次进展
渐次进展 2021-01-31 13:59

I\'m trying to plot a ROC curve using seaborn (python). With matplotlib I simply use the function plot:

plt.plot(one_minus_specificity, sensitivity,         


        
3条回答
  •  猫巷女王i
    2021-01-31 14:31

    Yes, you can do the same in Seaborn directly. This is done with tsplot() which allows either a single array as input, or two arrays where the other is 'time' i.e. x-axis.

    import seaborn as sns
    
    data =  [1,5,3,2,6] * 20
    time = range(100)
    
    sns.tsplot(data, time)
    

提交回复
热议问题