Skip to content

Commit f3ee4e3

Browse files
committed
Modification for Seaborn related deprecation
Due to deprecation of seaborn.barplot(ci), change the way the proportional barplot receiving confidence interval parameter. Update the dependencies for DABEST
1 parent a0cda86 commit f3ee4e3

5 files changed

Lines changed: 9 additions & 3 deletions

File tree

dabest/_classes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2672,6 +2672,9 @@ def plot(self, color_col=None,
26722672

26732673
# if self.__proportional:
26742674
# raw_marker_size = 0.01
2675+
2676+
# Modification incurred due to update of Seaborn
2677+
ci = ('ci', ci) if ci is not None else None
26752678

26762679
all_kwargs = locals()
26772680
del all_kwargs["self"]

dabest/plotter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def EffectSizeDataFramePlotter(EffectSizeDataFrame, **plot_kwargs):
127127
plot_kwargs["swarmplot_kwargs"])
128128

129129
# Barplot kwargs
130-
default_barplot_kwargs = {"estimator": np.mean, "ci": plot_kwargs["ci"]}
130+
default_barplot_kwargs = {"estimator": np.mean, "errorbar": plot_kwargs["ci"]}
131131

132132
if plot_kwargs["barplot_kwargs"] is None:
133133
barplot_kwargs = default_barplot_kwargs

nbs/API/class.ipynb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3611,6 +3611,9 @@
36113611
"\n",
36123612
" # if self.__proportional:\n",
36133613
" # raw_marker_size = 0.01\n",
3614+
"\n",
3615+
" # Modification incurred due to update of Seaborn\n",
3616+
" ci = ('ci', ci) if ci is not None else None\n",
36143617
" \n",
36153618
" all_kwargs = locals()\n",
36163619
" del all_kwargs[\"self\"]\n",

nbs/API/plotter.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
" plot_kwargs[\"swarmplot_kwargs\"])\n",
180180
"\n",
181181
" # Barplot kwargs\n",
182-
" default_barplot_kwargs = {\"estimator\": np.mean, \"ci\": plot_kwargs[\"ci\"]}\n",
182+
" default_barplot_kwargs = {\"estimator\": np.mean, \"errorbar\": plot_kwargs[\"ci\"]}\n",
183183
"\n",
184184
" if plot_kwargs[\"barplot_kwargs\"] is None:\n",
185185
" barplot_kwargs = default_barplot_kwargs\n",

settings.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ language = English
3737
status = 3
3838
user = ZHANGROU-99
3939

40-
requirements = fastcore pandas~=1.5.0 numpy~=1.22.3 matplotlib~=3.6.3 seaborn~=0.11.2 scipy~=1.9.3 datetime statsmodels lqrt
40+
requirements = fastcore pandas~=1.5.0 numpy~=1.22.3 matplotlib~=3.6.3 seaborn~=0.12.2 scipy~=1.9.3 datetime statsmodels lqrt
4141
dev_requirements = pytest~=7.2.1 pytest-mpl~=0.16.1
4242

4343
### Optional ###

0 commit comments

Comments
 (0)