Skip to content

Commit 21b3a05

Browse files
committed
comment tweak
1 parent fae42cc commit 21b3a05

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scikit_posthocs/_plotting.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def critical_difference_diagram(
532532
for bar_i in sorted(crossbar_ranks, key=lambda x: x[0] - x[-1]):
533533
for bars_in_level in crossbar_levels:
534534
if all(
535-
(bar_i[-1] < bar_j[0]) or (bar_i[0] > bar_j[-1])
535+
(bar_i[-1] < bar_j[0]) or (bar_i[0] > bar_j[-1]) # True if no intersection
536536
for bar_j in bars_in_level
537537
):
538538
bars_in_level.append(bar_i)
@@ -541,8 +541,7 @@ def critical_difference_diagram(
541541
crossbar_levels.append([bar_i]) # Create a new level
542542

543543
# Plot crossbars.
544-
# We could plot a single line segment for the whole crossbar. However,
545-
# we add a separate segment between each elbow, enabling the display of a
544+
# We add a separate segment between each elbow, enabling the display of a
546545
# marker over each elbow, e.g. crossbar_props={'marker': 'o'}.
547546
crossbars = [
548547
[ax.plot(bar, [-i] * len(bar), **crossbar_props) for bar in level]

0 commit comments

Comments
 (0)