Closed
Description
Bug summary
Reading https://matplotlib.org/stable/users/explain/colors/colors.html#color-formats it would seem like color=("C0", .5)
(C0 color with alpha=0.5) should work, but it doesn't.
(Could also be considered a doc bug or a feature request, strictly speaking.)
Code for reproduction
from pylab import *; plot([0, 1], c=("C0", .5))
Actual outcome
ValueError: ('C0', 0.5) is not a valid value for color
Expected outcome
No error.
Additional information
No response
Operating system
macos
Matplotlib Version
3.9.0.dev1178+g88d64e5f0c
Matplotlib Backend
any
Python version
3.12
Jupyter version
none
Installation
git checkout