Specifying Colors — Matplotlib documentation
· Table of Contents. Specifying Colors "CN" color selection; Comparison between X11/CSS4 and xkcd colors; Show Page Source. Note. Click here to download the full example code. Specifying Colors¶ Matplotlib recognizes the following formats in the table below to specify a color. Format Example; RGB or RGBA (red, green, blue, alpha) tuple of float values in a closed interval [0, 1]. (, .