Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c4bfd54

Browse filesBrowse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR #29148: Don't fail on equal-but-differently-named cmaps in qt figureoptions.
1 parent d71ff49 commit c4bfd54
Copy full SHA for c4bfd54

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎lib/matplotlib/backends/qt_editor/figureoptions.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/qt_editor/figureoptions.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def prepare_data(d, init):
149149
cmaps = [(cmap, name) for name, cmap in sorted(cm._colormaps.items())]
150150
for label, mappable in labeled_mappables:
151151
cmap = mappable.get_cmap()
152-
if cmap not in cm._colormaps.values():
152+
if cmap.name not in cm._colormaps:
153153
cmaps = [(cmap, cmap.name), *cmaps]
154154
low, high = mappable.get_clim()
155155
mappabledata = [

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.