From 34a3c99b88a40b7fe7f1c8a233c158c9b471f963 Mon Sep 17 00:00:00 2001 From: Alison Date: Thu, 9 Mar 2017 12:54:38 -0500 Subject: [PATCH] [MRG+1] add edgecolor to plot_pca_iris.py (#8514) for better rendering with matplotlib 2 --- examples/decomposition/plot_pca_iris.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/decomposition/plot_pca_iris.py b/examples/decomposition/plot_pca_iris.py index f8451915b4412..23bf4ce510135 100644 --- a/examples/decomposition/plot_pca_iris.py +++ b/examples/decomposition/plot_pca_iris.py @@ -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([])