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 e89ad40

Browse filesBrowse files
committed
Remove redundant OrderedDict call.
1 parent 4e1df0b commit e89ad40
Copy full SHA for e89ad40

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+3
-3
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:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.