Skip to content
Snippets Groups Projects
Commit dba25389 authored by Gael Varoquaux's avatar Gael Varoquaux
Browse files

COSMIT: prettify plot_oneclass

It's on the front page: it must give a pretty picture :)
parent 47fd425b
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,9 @@ pl.set_cmap(pl.cm.Paired)
pl.contourf(xx, yy, Z)
pl.scatter(X[y_pred>0,0], X[y_pred>0,1], c='white', label='inliers')
pl.scatter(X[y_pred<=0,0], X[y_pred<=0,1], c='black', label='outliers')
pl.axis('tight')
pl.xlim(xx.min(), xx.max())
pl.ylim(yy.min(), yy.max())
pl.xticks(())
pl.yticks(())
pl.legend()
pl.show()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment