python - Simple line plots using seaborn -


i'm trying plot roc curve using seaborn (python). matplotlib use function plot:

plt.plot(one_minus_specificity, sensitivity, 'bs--') 

where one_minus_specificity , sensitivity 2 lists of paired values.

is there simple counterparts of plot function in seaborn? had @ gallery didn't find straightforward method.

since seaborn uses matplotlib plotting can combine two. if want adopt styling of seaborn set_style function should started:

import matplotlib.pyplot plt import numpy np import seaborn sns  sns.set_style("darkgrid") plt.plot(np.cumsum(np.random.randn(1000,1))) plt.show() 

result:

enter image description here


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -