If I have a function which takes color as an input to be edited first (by RGB numbers), and then used in matplotlib.pyplot. How can I
function
color
matplotlib.pyplot
You can use with matplotlib.colors
matplotlib.colors
from matplotlib import colors print(colors.to_rgba('blue'))
Result:
(0.0, 0.0, 1.0, 1.0)
Found the solution, by
from matplotlib import colors orange_rgb = colors.hex2color(colors.cnames['orange'])