Skip to content

Commit a652eb4

Browse files
committed
remove unecessary lines
1 parent db276c7 commit a652eb4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

scikit_posthocs/_plotting.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -521,10 +521,7 @@ def critical_difference_diagram(
521521
# Sets of points under the same crossbar
522522
crossbar_sets = [bar for bar in _find_maximal_cliques(adj_matrix) if len(bar) > 1]
523523

524-
if not crossbar_sets: # All points are significantly different
525-
# The list of crossbars is left empty
526-
lowest_crossbar_ypos = -1
527-
else:
524+
if crossbar_sets: # If there are any crossbars to plot
528525
crossbar_min_max = [ # Will be used to check if two crossbars intersect
529526
ranks.reindex(bar).agg(["min", "max"])
530527
for bar in crossbar_sets
@@ -560,7 +557,7 @@ def critical_difference_diagram(
560557
plotted_bars_in_level.append(plotted_bar)
561558
crossbars.append(plotted_bars_in_level)
562559

563-
lowest_crossbar_ypos = -len(crossbar_levels)
560+
lowest_crossbar_ypos = -len(crossbar_levels)
564561

565562
def plot_items(points, xpos, label_fmt, color_palette, label_props):
566563
"""Plot each marker + elbow + label."""

0 commit comments

Comments
 (0)