Skip to content

Commit f355a59

Browse files
committed
Added support for delta-delta legend
1 parent a73ac6d commit f355a59

43 files changed

Lines changed: 4 additions & 6 deletions

File tree

Some content is hidden

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

dabest/_effsize_objects.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,8 +1320,7 @@ def plot(
13201320
legend_kwargs : dict, default None
13211321
Pass any keyword arguments accepted by the matplotlib Axes
13221322
`legend` command here, as a dict. If None, the following keywords
1323-
are passed to matplotlib.Axes.legend : {'loc':'upper left',
1324-
'frameon':False}.
1323+
are passed to matplotlib.Axes.legend : {'frameon':False}.
13251324
title : string, default None
13261325
Title for the plot. If None, no title will be displayed. Pass any
13271326
keyword arguments accepted by the matplotlib.pyplot.suptitle `t` command here,

dabest/plotter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ def effectsize_df_plotter(effectsize_df: object, **plot_kwargs) -> matplotlib.fi
592592
legend_labels = [l for l in labels]
593593
legend_handles = [h for h in handles]
594594

595-
if bootstraps_color_by_group is False and not effectsize_df.delta2:
595+
if bootstraps_color_by_group is False:
596596
rawdata_axes.legend().set_visible(False)
597597
show_legend(
598598
legend_labels = legend_labels,

nbs/API/effsize_objects.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,8 +1479,7 @@
14791479
" legend_kwargs : dict, default None\n",
14801480
" Pass any keyword arguments accepted by the matplotlib Axes\n",
14811481
" `legend` command here, as a dict. If None, the following keywords\n",
1482-
" are passed to matplotlib.Axes.legend : {'loc':'upper left',\n",
1483-
" 'frameon':False}.\n",
1482+
" are passed to matplotlib.Axes.legend : {'frameon':False}.\n",
14841483
" title : string, default None\n",
14851484
" Title for the plot. If None, no title will be displayed. Pass any\n",
14861485
" keyword arguments accepted by the matplotlib.pyplot.suptitle `t` command here,\n",

nbs/API/plotter.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@
649649
" legend_labels = [l for l in labels]\n",
650650
" legend_handles = [h for h in handles]\n",
651651
"\n",
652-
" if bootstraps_color_by_group is False and not effectsize_df.delta2:\n",
652+
" if bootstraps_color_by_group is False:\n",
653653
" rawdata_axes.legend().set_visible(False)\n",
654654
" show_legend(\n",
655655
" legend_labels = legend_labels, \n",
1.34 KB
956 Bytes
1.42 KB
1.29 KB
1.29 KB
1.29 KB

0 commit comments

Comments
 (0)