Skip to content

Commit bb74302

Browse files
author
Sarah Krebs
committed
Fix error when requesting more than 10 colors
1 parent f3e7c5a commit bb74302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepcave/utils/styled_plotty.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def get_color(id_: int, alpha: float = 1) -> Union[str, Tuple[float, float, floa
7474
if id_ < 10:
7575
color = px.colors.qualitative.Plotly[id_]
7676
else:
77-
color = px.colors.qualitative.Alphabet[id_ % 10]
77+
color = px.colors.qualitative.Alphabet[id_ - 10]
7878

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

0 commit comments

Comments
 (0)