From c959289013778e4a7fb0ee1b979696a83b47c661 Mon Sep 17 00:00:00 2001 From: Simon Brugman Date: Mon, 4 Jul 2022 23:13:44 +0200 Subject: [PATCH] fix: color order --- popmon/visualization/utils.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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])