8000 Fix another datad[cmapname] that didn't exist in master. · matplotlib/matplotlib@c2daee2 · GitHub
[go: up one dir, main page]

Skip to content

Commit c2daee2

Browse files
committed
Fix another datad[cmapname] that didn't exist in master.
1 parent fe1641b commit c2daee2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/cm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ def _generate_cmap(name, lutsize):
8383

8484
# Generate the reversed specifications ...
8585
for cmapname in list(six.iterkeys(datad)):
86-
spec = datad[cmapname]
86+
# Use superclass method to avoid deprecation warnings during initial load.
87+
spec = dict.__getitem__(datad, cmapname)
8788
spec_reversed = _reverse_cmap_spec(spec)
8889
datad[cmapname + '_r'] = spec_reversed
8990

0 commit comments

Comments
 (0)
0