Skip to content

Commit

Permalink
seaborn API fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrolexa committed Feb 16, 2024
1 parent 9aa96fb commit 16a48be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
20 changes: 0 additions & 20 deletions ci-environment.yml

This file was deleted.

6 changes: 4 additions & 2 deletions polylx/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2134,11 +2134,11 @@ def _seaborn_plot(self, sns_plot_fun, val, **kwargs):
Args:
sns_plot_fun: sns_plotting function
val: array of values
attr: object attribute to be used. See .df method
Keyword Args:
show: If True matplotlib show is called. Default True
attr: property used for plotting.
ax: None or matplotlib axes to be used
hue: When True attr is used for hue and names for x.
When show=False, returns matplotlib axes object.
Expand Down Expand Up @@ -2166,6 +2166,7 @@ def _seaborn_plot(self, sns_plot_fun, val, **kwargs):
x="class",
y=val,
data=self.df("class", val),
hue="class",
order=self.classes.index,
palette=self.classes._colors_dict,
)
Expand Down Expand Up @@ -2211,6 +2212,7 @@ def countplot(self, **kwargs):
sns.countplot(
x="class",
data=self.df("class"),
hue="class",
order=self.classes.index,
palette=self.classes._colors_dict,
)
Expand Down

0 comments on commit 16a48be

Please sign in to comment.