diff --git a/popmon/visualization/utils.py b/popmon/visualization/utils.py index 72ac3dc2..ab22e26f 100644 --- a/popmon/visualization/utils.py +++ b/popmon/visualization/utils.py @@ -138,15 +138,15 @@ def plot_bars( y_max += spread y_min -= spread if not isinstance(max_r, (list, tuple)): - fig.add_hline(y=max_r, line_color=tl_colors["yellow"]) - fig.add_hline(y=max_y, line_color=tl_colors["red"]) - fig.add_hline(y=min_y, line_color=tl_colors["red"]) - fig.add_hline(y=min_r, line_color=tl_colors["yellow"]) + fig.add_hline(y=max_r, line_color=tl_colors["red"]) + fig.add_hline(y=max_y, line_color=tl_colors["yellow"]) + fig.add_hline(y=min_y, line_color=tl_colors["yellow"]) + fig.add_hline(y=min_r, line_color=tl_colors["red"]) else: - fig.add_hline(y=max_r[0], line_color=tl_colors["yellow"]) - fig.add_hline(y=max_y[0], line_color=tl_colors["red"]) - fig.add_hline(y=min_y[0], line_color=tl_colors["red"]) - fig.add_hline(y=min_r[0], line_color=tl_colors["yellow"]) + fig.add_hline(y=max_r[0], line_color=tl_colors["red"]) + fig.add_hline(y=max_y[0], line_color=tl_colors["yellow"]) + fig.add_hline(y=min_y[0], line_color=tl_colors["yellow"]) + fig.add_hline(y=min_r[0], line_color=tl_colors["red"]) if y_max > y_min: fig.update_yaxes(range=[y_min, y_max])