We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe1641b commit c2daee2Copy full SHA for c2daee2
lib/matplotlib/cm.py
@@ -83,7 +83,8 @@ def _generate_cmap(name, lutsize):
83
84
# Generate the reversed specifications ...
85
for cmapname in list(six.iterkeys(datad)):
86
- spec = datad[cmapname]
+ # Use superclass method to avoid deprecation warnings during initial load.
87
+ spec = dict.__getitem__(datad, cmapname)
88
spec_reversed = _reverse_cmap_spec(spec)
89
datad[cmapname + '_r'] = spec_reversed
90
0 commit comments