diff --git a/examples/svm/plot_oneclass.py b/examples/svm/plot_oneclass.py index 43d96dbd83b6c67c6b78065af747925c8f5c475d..871001de0d3c3ed4554d261458248cd15e309b6e 100644 --- a/examples/svm/plot_oneclass.py +++ b/examples/svm/plot_oneclass.py @@ -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()