Skip to content

Commit b771418

Browse files
Update plot_effects_barplot() to remove FutureWarning (#1013)
* fixes #1008 * use keyword args
1 parent 392f64f commit b771418

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

pertpy/tools/_coda/_base_coda.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,12 +1501,14 @@ def plot_effects_barplot( # pragma: no cover # noqa: D417
15011501
aspect=aspect,
15021502
)
15031503

1504-
g.map(
1504+
g.map_dataframe(
15051505
sns.barplot,
1506-
"Cell Type",
1507-
"value",
1506+
x="Cell Type",
1507+
y="value",
1508+
hue="Cell Type",
15081509
palette=palette,
15091510
order=level_order,
1511+
hue_order=level_order,
15101512
**args_barplot,
15111513
)
15121514
g.set_xticklabels(rotation=90)

0 commit comments

Comments
 (0)