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 ad4feab

Browse filesBrowse files
committed
Avoid duplicate cmap in image options.
The previous implementation was incorrect and would yield a double entry in the cmap combobox.
1 parent 8658721 commit ad4feab
Copy full SHA for ad4feab

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

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
@@ -137,7 +137,7 @@ def prepare_data(d, init):
137137
for label in imagelabels:
138138
image = imagedict[label]
139139
cmap = image.get_cmap()
140-
if cmap not in cm.cmap_d:
140+
if cmap not in cm.cmap_d.values():
141141
cmaps = [(cmap, cmap.name)] + cmaps
142142
imagedata = [
143143
('Label', label),

0 commit comments

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