Skip to content
Snippets Groups Projects
Commit 7c4126e5 authored by Jake VanderPlas's avatar Jake VanderPlas
Browse files

Merge pull request #2104 from kastnerkyle/master

Fixes #2039 Image in tutorial misaligned
parents 63df99d7 eb19f89f
Branches
Tags
No related merge requests found
......@@ -47,8 +47,9 @@ for weights in ['uniform', 'distance']:
# Plot also the training points
pl.scatter(X[:, 0], X[:, 1], c=y, cmap=cmap_bold)
pl.xlim(xx.min(), xx.max())
pl.ylim(yy.min(), yy.max())
pl.title("3-Class classification (k = %i, weights = '%s')"
% (n_neighbors, weights))
pl.axis('tight')
pl.show()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment