Skip to content

Commit fb40de8

Browse files
committed
updated label capitalisation if paired
1 parent cbf6571 commit fb40de8

File tree

60 files changed

+8
-8
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+8
-8
lines changed

dabest/misc_tools.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -951,24 +951,24 @@ def initialize_fig(
951951

952952
# Set contrast axes y-label.
953953
contrast_label_dict = {
954-
"mean_diff": "Mean difference",
955-
"median_diff": "Median difference",
954+
"mean_diff": "mean difference",
955+
"median_diff": "median difference",
956956
"cohens_d": "Cohen's d",
957957
"hedges_g": "Hedges' g",
958958
"cliffs_delta": "Cliff's delta",
959959
"cohens_h": "Cohen's h",
960960
}
961961

962962
if proportional and effect_size_type != "cohens_h":
963-
default_contrast_label = "Proportion difference"
963+
default_contrast_label = "proportion difference"
964964
else:
965965
default_contrast_label = contrast_label_dict[effect_size_type]
966966

967967
if plot_kwargs["contrast_label"] is None:
968968
if is_paired:
969969
contrast_label = "Paired\n{}".format(default_contrast_label)
970970
else:
971-
contrast_label = default_contrast_label
971+
contrast_label = default_contrast_label.capitalize()
972972
else:
973973
contrast_label = plot_kwargs["contrast_label"]
974974

nbs/API/misc_tools.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,24 +1004,24 @@
10041004
"\n",
10051005
" # Set contrast axes y-label.\n",
10061006
" contrast_label_dict = {\n",
1007-
" \"mean_diff\": \"Mean difference\",\n",
1008-
" \"median_diff\": \"Median difference\",\n",
1007+
" \"mean_diff\": \"mean difference\",\n",
1008+
" \"median_diff\": \"median difference\",\n",
10091009
" \"cohens_d\": \"Cohen's d\",\n",
10101010
" \"hedges_g\": \"Hedges' g\",\n",
10111011
" \"cliffs_delta\": \"Cliff's delta\",\n",
10121012
" \"cohens_h\": \"Cohen's h\",\n",
10131013
" }\n",
10141014
"\n",
10151015
" if proportional and effect_size_type != \"cohens_h\":\n",
1016-
" default_contrast_label = \"Proportion difference\"\n",
1016+
" default_contrast_label = \"proportion difference\"\n",
10171017
" else:\n",
10181018
" default_contrast_label = contrast_label_dict[effect_size_type]\n",
10191019
"\n",
10201020
" if plot_kwargs[\"contrast_label\"] is None:\n",
10211021
" if is_paired:\n",
10221022
" contrast_label = \"Paired\\n{}\".format(default_contrast_label)\n",
10231023
" else:\n",
1024-
" contrast_label = default_contrast_label\n",
1024+
" contrast_label = default_contrast_label.capitalize()\n",
10251025
" else:\n",
10261026
" contrast_label = plot_kwargs[\"contrast_label\"]\n",
10271027
"\n",
156 Bytes
-131 Bytes
-135 Bytes
-326 Bytes
1.28 KB
86 Bytes
86 Bytes
93 Bytes

0 commit comments

Comments
 (0)