File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 16
16
17
17
18
18
# These colors are from Tableau
19
- TABLEAU_COLORS = OrderedDict ( (
19
+ TABLEAU_COLORS = (
20
20
('blue' , '#1f77b4' ),
21
21
('orange' , '#ff7f0e' ),
22
22
('green' , '#2ca02c' ),
26
26
('pink' , '#e377c2' ),
27
27
('gray' , '#7f7f7f' ),
28
28
('olive' , '#bcbd22' ),
29
- ('cyan' , '#17becf' ))
29
+ ('cyan' , '#17becf' ),
30
30
)
31
31
32
32
# Normalize name to "tab:<name>" to avoid name collisions.
33
33
TABLEAU_COLORS = OrderedDict (
34
- ('tab:' + name , value ) for name , value in TABLEAU_COLORS . items () )
34
+ ('tab:' + name , value ) for name , value in TABLEAU_COLORS )
35
35
36
36
# This mapping of color names -> hex values is taken from
37
37
# a survey run by Randel Monroe see:
Original file line number Diff line number Diff line change @@ -260,7 +260,6 @@ def to_hex(c, keep_alpha=False):
260
260
### Backwards-compatible color-conversion API
261
261
262
262
cnames = CSS4_COLORS
263
- COLOR_NAMES = {'xkcd' : XKCD_COLORS , 'css4' : CSS4_COLORS , 'tc' : TABLEAU_COLORS }
264
263
hexColorPattern = re .compile ("\A#[a-fA-F0-9]{6}\Z" )
265
264
266
265
You can’t perform that action at this time.
0 commit comments