8000 DOC Modify plot_gpc_iris.py for matplotlib v2 (#8385) · NelleV/scikit-learn@baeae7e · GitHub
[go: up one dir, main page]

Skip to content

Commit baeae7e

Browse files
rishikksh20NelleV
authored andcommitted
DOC Modify plot_gpc_iris.py for matplotlib v2 (scikit-learn#8385)
Add edgecolors option in scatter plot Issue: scikit-learn#8364
1 parent 3e6ddbc commit baeae7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/gaussian_process/plot_gpc_iris.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
plt.imshow(Z, extent=(x_min, x_max, y_min, y_max), origin="lower")
4949

5050
# Plot also the training points
51-
plt.scatter(X[:, 0], X[:, 1], c=np.array(["r", "g", "b"])[y])
51+
plt.scatter(X[:, 0], X[:, 1], c=np.array(["r", "g", "b"])[y],
52+
edgecolors=(0, 0, 0))
5253
plt.xlabel('Sepal length')
5354
plt.ylabel('Sepal width')
5455
plt.xlim(xx.min(), xx.max())

0 commit comments

Comments
 (0)
0