diff --git a/ci-environment.yml b/ci-environment.yml deleted file mode 100644 index bd7e7bf..0000000 --- a/ci-environment.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: polylx -channels: - - conda-forge - - nodefaults -dependencies: - - pip - - numpy - - matplotlib - - scipy - - pandas - - pyarrow - - seaborn - - networkx - - shapely>=2 - - pyshp - - flake8 - - pytest - - pyefd - - jenkspy - - shapelysmooth diff --git a/polylx/core.py b/polylx/core.py index fda9047..f719d35 100644 --- a/polylx/core.py +++ b/polylx/core.py @@ -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. @@ -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, ) @@ -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, )