Skip to content

Commit 9bcc687

Browse files
abhinavtpsjeremiedbb
authored andcommitted
DOC Replacing swarmplot with stripplot to avoid seaborn warning (scikit-learn#19195)
1 parent 8240de0 commit 9bcc687

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/inspection/plot_linear_model_coefficient_interpretation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@
325325
columns=feature_names
326326
)
327327
plt.figure(figsize=(9, 7))
328-
sns.swarmplot(data=coefs, orient='h', color='k', alpha=0.5)
328+
sns.stripplot(data=coefs, orient='h', color='k', alpha=0.5)
329329
sns.boxplot(data=coefs, orient='h', color='cyan', saturation=0.5)
330330
plt.axvline(x=0, color='.5')
331331
plt.xlabel('Coefficient importance')
@@ -376,7 +376,7 @@
376376
columns=feature_names[:-1]
377377
)
378378
plt.figure(figsize=(9, 7))
379-
sns.swarmplot(data=coefs, orient='h', color='k', alpha=0.5)
379+
sns.stripplot(data=coefs, orient='h', color='k', alpha=0.5)
380380
sns.boxplot(data=coefs, orient='h', color='cyan', saturation=0.5)
381381
plt.axvline(x=0, color='.5')
382382
plt.title('Coefficient importance and its variability')
@@ -469,7 +469,7 @@
469469
columns=feature_names
470470
)
471471
plt.figure(figsize=(9, 7))
472-
sns.swarmplot(data=coefs, orient='h', color='k', alpha=0.5)
472+
sns.stripplot(data=coefs, orient='h', color='k', alpha=0.5)
473473
sns.boxplot(data=coefs, orient='h', color='cyan', saturation=0.5)
474474
plt.axvline(x=0, color='.5')
475475
plt.title('Coefficient variability')

0 commit comments

Comments
 (0)