We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f30bd5 commit 8f44f5fCopy full SHA for 8f44f5f
panel/app.py
@@ -156,7 +156,7 @@ def base_colors(res):
156
all_colors = sd.palette(res.states)
157
colors = all_colors[:: res.states[0]]
158
colors = [mpl.colors.rgb2hex(color, keep_alpha=False) for color in colors]
159
- return colors
+ return colors[: res.states[0]] # ensure not more colors than states
160
161
162
def update_colors_select(event):
0 commit comments