Skip to content

Commit 37bfe80

Browse files
committed
FIX Changed zorder so support vectors are clearly visible
1 parent 66fd680 commit 37bfe80

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/plot_kernel_ridge_regression.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@
100100
#############################################################################
101101
# look at the results
102102
sv_ind = svr.best_estimator_.support_
103-
plt.scatter(X[sv_ind], y[sv_ind], c='r', s=50, label='SVR support vectors')
104-
plt.scatter(X[:100], y[:100], c='k', label='data')
103+
plt.scatter(X[sv_ind], y[sv_ind], c='r', s=50, label='SVR support vectors',
104+
zorder=2)
105+
plt.scatter(X[:100], y[:100], c='k', label='data', zorder=1)
105106
plt.hold('on')
106107
plt.plot(X_plot, y_svr, c='r',
107108
label='SVR (fit: %.3fs, predict: %.3fs)' % (svr_fit, svr_predict))

0 commit comments

Comments
 (0)