File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments