diff --git a/examples/svm/plot_separating_hyperplane.py b/examples/svm/plot_separating_hyperplane.py index 05833eece9ec5efbe1cd46efc952fbe2af097d2e..10b5a188fc913f6c87d9b1843f69fcba9a18de96 100644 --- a/examples/svm/plot_separating_hyperplane.py +++ b/examples/svm/plot_separating_hyperplane.py @@ -40,8 +40,10 @@ pl.set_cmap(pl.cm.Paired) pl.plot(xx, yy, 'k-') pl.plot(xx, yy_down, 'k--') pl.plot(xx, yy_up, 'k--') + +pl.scatter(clf.support_vectors_[:,0], clf.support_vectors_[:,1], + s=80, facecolors='none') pl.scatter(X[:,0], X[:,1], c=Y) -pl.scatter(clf.support_vectors_[:,0], clf.support_vectors_[:,1], c='white') pl.axis('tight') pl.show()