Open simonm3 opened 3 years ago
The docs say "This function takes either an ‘rgb(a, b, c)’ color or a list of such colors" but a list fails.
windows 10, plotly 4.14.3
from plotly.colors import * colorset = sequential.YlOrRd print([unlabel_rgb(c) for c in colorset]) print(unlabel_rgb(colorset))
ValueError Traceback (most recent call last)
@LiamConnors @alexcjohnson is this a bug or a feature request?
Sure looks like a bug to me, should be a simple fix.
The docs say "This function takes either an ‘rgb(a, b, c)’ color or a list of such colors" but a list fails.
windows 10, plotly 4.14.3
[(255.0, 255.0, 204.0), (255.0, 237.0, 160.0), (254.0, 217.0, 118.0), (254.0, 178.0, 76.0), (253.0, 141.0, 60.0), (252.0, 78.0, 42.0), (227.0, 26.0, 28.0), (189.0, 0.0, 38.0), (128.0, 0.0, 38.0)]
ValueError Traceback (most recent call last)