Named colors in matplotlib
2019-06-02 本文已影响2人
榴莲气象
Named colors in matplotlib
![](https://img.haomeiwen.com/i635081/616d543b95949235.png)
Additional named colors
Updated 2017-10-25. I merged my previous updates into this section.
xkcd
If you would like to use additional named colors when plotting with matplotlib, you can use the xkcd crowdsourced color names, via the 'xkcd:' prefix:
plt.plot([1,2], lw=4, c='xkcd:baby poop green')
![](https://img.haomeiwen.com/i635081/90f108e9950cc212.png)