Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e89ad40

Browse files
committed
Remove redundant OrderedDict call.
1 parent 4e1df0b commit e89ad40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/_color_data.py

Lines 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)