Skip to content

Commit

Permalink
Fix error when requesting more than 10 colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarah Krebs committed Oct 27, 2023
1 parent f3e7c5a commit bb74302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepcave/utils/styled_plotty.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def get_color(id_: int, alpha: float = 1) -> Union[str, Tuple[float, float, floa
if id_ < 10:
color = px.colors.qualitative.Plotly[id_]
else:
color = px.colors.qualitative.Alphabet[id_ % 10]
color = px.colors.qualitative.Alphabet[id_ - 10]

r, g, b = hex_to_rgb(color)
return f"rgba({r}, {g}, {b}, {alpha})"
Expand Down

0 comments on commit bb74302

Please sign in to comment.