Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 6baa706 + 4997d5e commit e5b98d9Copy full SHA for e5b98d9
1 file changed
lib/matplotlib/backends/qt_editor/figureoptions.py
@@ -149,7 +149,7 @@ def prepare_data(d, init):
149
cmaps = [(cmap, name) for name, cmap in sorted(cm._colormaps.items())]
150
for label, mappable in labeled_mappables:
151
cmap = mappable.get_cmap()
152
- if cmap not in cm._colormaps.values():
+ if cmap.name not in cm._colormaps:
153
cmaps = [(cmap, cmap.name), *cmaps]
154
low, high = mappable.get_clim()
155
mappabledata = [
0 commit comments