Skip to content

Commit 0059646

Browse files
committed
Fix the bug on show_pairs
1 parent 1484206 commit 0059646

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dabest/plotter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def EffectSizeDataFramePlotter(EffectSizeDataFrame, **plot_kwargs):
453453

454454
# Plot effect sizes and bootstraps.
455455
# Take note of where the `control` groups are.
456-
if is_paired == "baseline":
456+
if is_paired == "baseline" and show_pairs == True:
457457
ticks_to_skip = np.arange(0, len(temp_all_plot_groups), 2).tolist()
458458
ticks_to_plot = np.arange(1, len(temp_all_plot_groups), 2).tolist()
459459
ticks_to_skip_contrast = np.cumsum([(len(t)-1)*2 for t in idx])[:-1].tolist()
@@ -712,7 +712,7 @@ def EffectSizeDataFramePlotter(EffectSizeDataFrame, **plot_kwargs):
712712
if contrast_ylim_low < 0 < contrast_ylim_high:
713713
contrast_axes.axhline(y=0, **reflines_kwargs)
714714

715-
if is_paired == "baseline":
715+
if is_paired == "baseline" and show_pairs == True:
716716
rightend_ticks_raw = np.array([len(i)-1 for i in temp_idx]) + np.array(ticks_to_skip)
717717
for ax in [rawdata_axes]:
718718
sns.despine(ax=ax, bottom=True)

0 commit comments

Comments
 (0)