Repository navigation
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.
does this now still work with rbg(...) and rgba(...) both ?
There was a problem hiding this comment.
Yes, it does. Tested it. As I mentioned, doesn't handle HSL(A) yet.
There was a problem hiding this comment.
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 thecodegenfiles and not generated files.No tests for
to_rgb_color_listat all yet but not necessary as dependent functioncreate_annotated_heatmapis about to be deprecated (see below).