Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f63ae7a

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

File tree

Expand file treeCollapse file tree

2 files changed

+3
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-4
lines changed

‎lib/matplotlib/_color_data.py

Copy file name to clipboardExpand all lines: lib/matplotlib/_color_data.py
+3-3Lines changed: 3 additions & 3 deletions
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

Copy file name to clipboardExpand all lines: lib/matplotlib/colors.py
-1Lines changed: 0 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.