Skip to content
Snippets Groups Projects
Commit 941c18a7 authored by Fabian Pedregosa's avatar Fabian Pedregosa
Browse files

Turn off axis in plot_iris.

Looks better in the doc.
parent 31dc61ed
No related branches found
No related tags found
No related merge requests found
...@@ -53,12 +53,11 @@ for i, clf in enumerate((svc, rbf_svc, nu_svc, lin_svc)): ...@@ -53,12 +53,11 @@ for i, clf in enumerate((svc, rbf_svc, nu_svc, lin_svc)):
Z = Z.reshape(xx.shape) Z = Z.reshape(xx.shape)
pl.set_cmap(pl.cm.Paired) pl.set_cmap(pl.cm.Paired)
pl.contourf(xx, yy, Z) pl.contourf(xx, yy, Z)
pl.axis('tight') pl.axis('off')
# Plot also the training points # Plot also the training points
pl.scatter(X[:,0], X[:,1], c=Y) pl.scatter(X[:,0], X[:,1], c=Y)
pl.title(titles[i]) pl.title(titles[i])
pl.axis('tight')
pl.show() pl.show()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment