Skip to content

Commit

Permalink
fix: color order
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrugman committed Jul 4, 2022
1 parent ddf306c commit c959289
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions popmon/visualization/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit c959289

Please sign in to comment.