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

Skip to content

Commit 9963cca

Browse files
committed
FIX: use lowercase in map
ColorConverter lowercases everything on the way in.
1 parent b93bd5d commit 9963cca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/_color_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,11 +964,11 @@
964964
# normalize to names with no spaces and provide versions with XKCD
965965
# prefix.
966966
for k in list(XKCD_COLORS):
967-
XKCD_COLORS['XKCD'+k] = XKCD_COLORS[k]
967+
XKCD_COLORS['xkcd'+k] = XKCD_COLORS[k]
968968
_k = k.replace(' ', '')
969969
if _k != k:
970970
XKCD_COLORS[_k] = XKCD_COLORS[k]
971-
XKCD_COLORS['XKCD'+_k] = XKCD_COLORS[k]
971+
XKCD_COLORS['xkcd'+_k] = XKCD_COLORS[k]
972972

973973

974974
# https://drafts.csswg.org/css-color-4/#named-colors

0 commit comments

Comments
 (0)