-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fix to_rgb_color_list when passing rgba colors #3478
Conversation
Another probable issue is that |
Does this require a changelog entry? |
Hi, and thanks for your pull request! Yes, this probably needs a changelog entry. I should note that in the next release of this library, we will be marking |
Good to know. So does |
@nicolaskruchten This is ready for review. |
Thanks @janosh ! Yes, I've just merged the new changes to |
It's still a fix and would allow me to release some code that relies on this. Merging fixes even to deprecated code makes sense imo. |
elif "#" in color_str: | ||
color_str = color_str.strip() | ||
if color_str.startswith("rgb"): | ||
return [int(v) for v in color_str.strip("rgba()").split(",")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this now still work with rbg(...)
and rgba(...)
both ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it does. Tested it. As I mentioned, doesn't handle HSL(A) yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. After this next release I won't be accepting any more PRs to this deprecated code so let's not work on any HSL stuff please :)
OK, thanks! |
Thanks for merging! |
|
Closes #3477.
Code PR
plotly.graph_objects
, my modifications concern thecodegen
files and not generated files.No tests for
to_rgb_color_list
at all yet but not necessary as dependent functioncreate_annotated_heatmap
is about to be deprecated (see below).