Skip to content

Commit 85f1558

Browse files
committed
changed the bar chart to be the same colours for test and control
1 parent f11d5ea commit 85f1558

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
@@ -1456,9 +1456,9 @@ def lighten_color(color, amount=0.5):
14561456
test_color = swarm_colors[1]
14571457
# Draw stacked bar chart
14581458
axx.bar(0, ref, width = 0.5, color = control_color)
1459-
axx.bar(effsize_line_start, diff, width = 0.5, color = test_color)
1459+
axx.bar(effsize_line_start, diff, width = 0.5, color = control_color)
14601460
axx.bar(0, 1 - ref, bottom = ref, width = 0.5, color = lighten_color(control_color))
1461-
axx.bar(effsize_line_start, 1 - diff, bottom = diff, width = 0.5, color = lighten_color(test_color))
1461+
axx.bar(effsize_line_start, 1 - diff, bottom = diff, width = 0.5, color = lighten_color(control_color))
14621462

14631463
# Control group's proportion error
14641464
control_err = z_score*np.sqrt(ref*(1-ref)/(counts_lst[0]))

0 commit comments

Comments
 (0)