Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit faecefa

Browse files
committed
Clarification of language for indexing "CN" colors
1 parent 1dbfa54 commit faecefa

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

tutorials/colors/colors.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,30 @@
3333
| colors. | - ``'k'`` as black |
3434
| | - ``'w'`` as white |
3535
+--------------------------------------+--------------------------------------+
36-
| Case-insensitive X11/CSS4 color name | - 'aquamarine' |
37-
| with no spaces. | - 'mediumseagreen' |
36+
| Case-insensitive X11/CSS4 color name | - ``'aquamarine'`` |
37+
| with no spaces. | - ``'mediumseagreen'`` |
3838
+--------------------------------------+--------------------------------------+
3939
| Case-insensitive color name from | - ``'xkcd:sky blue'`` |
4040
| `xkcd color survey`_ with ``'xkcd:'``| - ``'xkcd:eggshell'`` |
4141
| prefix. | |
4242
+--------------------------------------+--------------------------------------+
43-
| Case-insensitive Tableau Colors from | - 'tab:blue' |
44-
| 'T10' categorical palette. | - 'tab:orange' |
45-
| | - 'tab:green' |
46-
| | - 'tab:red' |
47-
| | - 'tab:purple' |
48-
| .. note:: This is the default color | - 'tab:brown' |
49-
| cycle. | - 'tab:pink' |
50-
| | - 'tab:gray' |
51-
| | - 'tab:olive' |
52-
| | - 'tab:cyan' |
43+
| Case-insensitive Tableau Colors from | - ``'tab:blue'`` |
44+
| 'T10' categorical palette. | - ``'tab:orange'`` |
45+
| | - ``'tab:green'`` |
46+
| | - ``'tab:red'`` |
47+
| | - ``'tab:purple'`` |
48+
| .. note:: This is the default color | - ``'tab:brown'`` |
49+
| cycle. | - ``'tab:pink'`` |
50+
| | - ``'tab:gray'`` |
51+
| | - ``'tab:olive'`` |
52+
| | - ``'tab:cyan'`` |
5353
+--------------------------------------+--------------------------------------+
5454
| "CN" color spec where ``'C'`` | - ``'C0'`` |
5555
| precedes a number acting as an index | - ``'C1'`` |
5656
| into the default property cycle. +--------------------------------------+
5757
| | :rc:`axes.prop_cycle` |
58-
| .. note:: Indexing occurs at | |
59-
| rendering time and defaults| |
58+
| .. note:: Matplotlib indexes color | |
59+
| at draw time and defaults | |
6060
| to black if cycle does not | |
6161
| include color. | |
6262
+--------------------------------------+--------------------------------------+
@@ -108,7 +108,7 @@
108108
"CN" color selection
109109
--------------------
110110
111-
"CN" colors convert to RGBA when creating Artists. The
111+
Matplotlib converts "CN" colors to RGBA when drawing Artists. The
112112
:doc:`/tutorials/intermediate/color_cycle` section contains additional
113113
information about controlling colors and style properties.
114114
"""

0 commit comments

Comments
 (0)