|
5 | 5 |
|
6 | 6 | Matplotlib recognizes the following formats to specify a color: |
7 | 7 |
|
8 | | -* an RGB or RGBA (red, green, blue, alpha) tuple of float values in ``[0, 1]`` |
9 | | - (e.g., ``(0.1, 0.2, 0.5)`` or ``(0.1, 0.2, 0.5, 0.3)``); |
| 8 | +* an RGB or RGBA (red, green, blue, alpha) tuple of float values in closed |
| 9 | + interval ``[0, 1]`` (e.g., ``(0.1, 0.2, 0.5)`` or ``(0.1, 0.2, 0.5, 0.3)``); |
10 | 10 | * a hex RGB or RGBA string (e.g., ``'#0f0f0f'`` or ``'#0f0f0f80'``; |
11 | 11 | case-insensitive); |
12 | 12 | * a string representation of a float value in ``[0, 1]`` inclusive for gray |
13 | 13 | level (e.g., ``'0.5'``); |
14 | | -* one of ``{'b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'}``; |
| 14 | +* one of ``{'b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'}``, they are the single |
| 15 | + character short-hand notations for blue, green, red, cyan, magenta, yellow, |
| 16 | + black, and white. |
15 | 17 | * a X11/CSS4 color name (case-insensitive); |
16 | 18 | * a name from the `xkcd color survey`_, prefixed with ``'xkcd:'`` (e.g., |
17 | 19 | ``'xkcd:sky blue'``; case insensitive); |
|
0 commit comments