10000 [MRG+1] add edgecolor to plot_pca_iris.py (#8514) · massich/scikit-learn@a908778 · GitHub
[go: up one dir, main page]

Skip to content

Commit a908778

Browse files
katelieJoan Massich
authored andcommitted
[MRG+1] add edgecolor to plot_pca_iris.py (scikit-learn#8514)
for better rendering with matplotlib 2
1 parent a97ecd7 commit a908778

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/decomposition/plot_pca_iris.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
bbox=dict(alpha=.5, edgecolor='w', facecolor='w'))
5151
# Reorder the labels to have colors matching the cluster results
5252
y = np.choose(y, [1, 2, 0]).astype(np.float)
53-
ax.scatter(X[:, 0], X[:, 1], X[:, 2], c=y, cmap=plt.cm.spectral)
53+
ax.scatter(X[:, 0], X[:, 1], X[:, 2], c=y, cmap=plt.cm.spectral,
54+
edgecolor='k')
5455

5556
ax.w_xaxis.set_ticklabels([])
5657
ax.w_yaxis.set_ticklabels([])

0 commit comments

Comments
 (0)
0