You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This appears in the private function _to_rgba_no_colorcycle. This function is only ever called from to_rgba (after handling the Cn case specially). Moving (or adding, I guess) the same lines to the beginning of the public to_rgba would allow ("C0", 0.5) and likely not have too many other repercussions.
Activity
ksunden commentedon Feb 27, 2024
the precise logic that parses 2-element tuples into color/alpha is:
matplotlib/lib/matplotlib/colors.py
Lines 321 to 325 in 5e34777
This appears in the private function
_to_rgba_no_colorcycle. This function is only ever called fromto_rgba(after handling theCncase specially). Moving (or adding, I guess) the same lines to the beginning of the publicto_rgbawould allow("C0", 0.5)and likely not have too many other repercussions.FilBalza commentedon Jul 14, 2024
When trying to solve this issue, I saw that the suggested solution was already added and the code now works. Here's the commit for reference: 13b8718
rcomer commentedon Jul 14, 2024
Fixed by #28436