DOC remove MatplotlibDeprecationWarnings for plot_lasso_and_elasticnet.py example
@@ -74,7 +74,6 @@ m, s, _ = plt.stem(
enet.coef_[enet.coef_ != 0],
markerfmt="x",
label="Elastic net coefficients",
- use_line_collection=True,
)
plt.setp([m, s], color="#2ca02c")
m, s, _ = plt.stem(
@@ -82,7 +81,6 @@ m, s, _ = plt.stem(
lasso.coef_[lasso.coef_ != 0],
markerfmt="x",
label="Lasso coefficients",
- use_line_collection=True,
)
plt.setp([m, s], color="#ff7f0e")
plt.stem(
@@ -90,7 +88,6 @@ plt.stem(
coef[coef != 0],
label="true coefficients",
markerfmt="bx",
- use_line_collection=True,
)
plt.legend(loc="best")
