Skip to content

Commit

Permalink
[MRG+1] add edgecolor to plot_pca_iris.py (scikit-learn#8514)
Browse files Browse the repository at this point in the history
for better rendering with matplotlib 2
  • Loading branch information
katelie authored and lesteve committed Mar 9, 2017
1 parent 603ff1a commit 34a3c99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/decomposition/plot_pca_iris.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
bbox=dict(alpha=.5, edgecolor='w', facecolor='w'))
# Reorder the labels to have colors matching the cluster results
y = np.choose(y, [1, 2, 0]).astype(np.float)
ax.scatter(X[:, 0], X[:, 1], X[:, 2], c=y, cmap=plt.cm.spectral)
ax.scatter(X[:, 0], X[:, 1], X[:, 2], c=y, cmap=plt.cm.spectral,
edgecolor='k')

ax.w_xaxis.set_ticklabels([])
ax.w_yaxis.set_ticklabels([])
Expand Down

0 comments on commit 34a3c99

Please sign in to comment.