Skip to content

Commit f63ae7a

Browse files
authored
Merge pull request #7847 from QuLogic/tab-colours
MNT: Minor tab colour fix
2 parents 3e19f47 + 3d3130a commit f63ae7a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/matplotlib/_color_data.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
# These colors are from Tableau
19-
TABLEAU_COLORS = OrderedDict((
19+
TABLEAU_COLORS = (
2020
('blue', '#1f77b4'),
2121
('orange', '#ff7f0e'),
2222
('green', '#2ca02c'),
@@ -26,12 +26,12 @@
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.
3333
TABLEAU_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:

lib/matplotlib/colors.py

-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ def to_hex(c, keep_alpha=False):
260260
### Backwards-compatible color-conversion API
261261

262262
cnames = CSS4_COLORS
263-
COLOR_NAMES = {'xkcd': XKCD_COLORS, 'css4': CSS4_COLORS, 'tc': TABLEAU_COLORS}
264263
hexColorPattern = re.compile("\A#[a-fA-F0-9]{6}\Z")
265264

266265

0 commit comments

Comments
 (0)