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:
Comments
Post a Comment