File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717
1818# These colors are from Tableau
19- TABLEAU_COLORS = OrderedDict ( (
19+ TABLEAU_COLORS = (
2020 ('blue' , '#1f77b4' ),
2121 ('orange' , '#ff7f0e' ),
2222 ('green' , '#2ca02c' ),
2626 ('pink' , '#e377c2' ),
2727 ('gray' , '#7f7f7f' ),
2828 ('olive' , '#bcbd22' ),
29- ('cyan' , '#17becf' ))
29+ ('cyan' , '#17becf' ),
3030)
3131
3232# Normalize name to "tab:<name>" to avoid name collisions.
3333TABLEAU_COLORS = OrderedDict (
34- ('tab:' + name , value ) for name , value in TABLEAU_COLORS . items () )
34+ ('tab:' + name , value ) for name , value in TABLEAU_COLORS )
3535
3636# This mapping of color names -> hex values is taken from
3737# 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):
260260### Backwards-compatible color-conversion API
261261
262262cnames = CSS4_COLORS
263- COLOR_NAMES = {'xkcd' : XKCD_COLORS , 'css4' : CSS4_COLORS , 'tc' : TABLEAU_COLORS }
264263hexColorPattern = re .compile ("\A#[a-fA-F0-9]{6}\Z" )
265264
266265
You can’t perform that action at this time.
0 commit comments