Named colors in matplotlib

What named colors are available in matplotlib for use in plots? I can find a list on the matplotlib documentation that claims that these are the only names:

b: blue
g: green
r: red
c: cyan
m: magenta
y: yellow
k: black
w: white

However, I’ve found that these colors can also be used, at least in this context:

scatter(X,Y, color="red")
scatter(X,Y, color="orange")
scatter(X,Y, color="darkgreen")

but these are not on the above list. Does anyone know an exhaustive list of the named colors that are available?

5 Answers
5

Leave a Comment