-
-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow definition of color palettes using RGB-tuples #930
Comments
@mrksr I just tried it and it seems to work fine for me even without converting to hex. I did find that declaring the Cycle directly in the output magic doesn't work, e.g.:
Seems to throw an error, but if you declare it separately:
It seems to work fine in both matplotlib and bokeh. Could you confirm? |
I've got a fix for the parser so that |
Indeed, defining the cycle separately seems to work fine. Thank you for the fix! |
Once the parser fixes referenced above are merged you'll be able to define it inline in the magic as well. I'll close this issue now though. |
Seaborn offers an API to create new color palettes on the fly. These APIs return lists of RGB-Tuples:
It would be very nice to be able to use them in Holoviews directly:
However,
Cycle
(andPalette
) assume colors to be defined as hex strings (like#FF0000
) or names (likegreen
).It is possible to convert the seaborn palette like so:
But this is quite cumbersome. Ideally, Holoviews would just accept RGB tuples anywhere it accepts hex strings.
The text was updated successfully, but these errors were encountered: