8000 Add prefix vega10:__ to vega10 colors descriptions in colors.rst, fix… · matplotlib/matplotlib@e6edf08 · GitHub
[go: up one dir, main page]

Skip to content

Commit e6edf08

Browse files
trphamtacaswell
authored andcommitted
Add prefix vega10:__ to vega10 colors descriptions in colors.rst, fix pep8 style for VEGA10_COLORS dictionary in _color_data.py
1 parent c480623 commit e6edf08

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/users/colors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ it can be provided as:
1717
* a name from the `xkcd color survey <https://xkcd.com/color/rgb/>`__
1818
prefixed with ``'xkcd:'`` (e.g., ``'xkcd:sky blue'``)
1919
* one of ``{'C0', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6', 'C7', 'C8', 'C9'}``
20-
* one of ``{'blue', 'orange', 'green', 'red', 'purple', 'brown', 'pink', 'gray', 'olive', 'cyan'}``
20+
* one of ``{'vega10:blue', 'vega10:orange', 'vega10:green', 'vega10:red', 'vega10:purple', 'vega10:brown', 'vega10:pink', 'vega10:gray', 'vega10:olive', 'vega10:cyan'}``
2121

2222
All string specifications of color are case-insensitive.
2323

lib/matplotlib/_color_data.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929

3030

3131
# Normalize name to "vega:<name>" to avoid name collisions.
32-
VEGA10_COLORS = {'vega:' + name: value for name, value in VEGA10_COLORS.items()}
32+
VEGA10_COLORS = {'vega:' + name: value for name,
33+
value in VEGA10_COLORS.items()}
3334

3435

3536
# This mapping of color names -> hex values is taken from

0 commit comments

Comments
 (0)
0