Skip to content
Prev Previous commit
Next Next commit
Avoid duplicate cmap in image options.
The previous implementation was incorrect and would yield a double entry
in the cmap combobox.
  • Loading branch information
anntzer committed Jul 10, 2016
commit cf4b2196a06742c2d1cdea756b5f11274b7bd62c
2 changes: 1 addition & 1 deletion lib/matplotlib/backends/qt_editor/figureoptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def prepare_data(d, init):
for label in imagelabels:
image = imagedict[label]
cmap = image.get_cmap()
if cmap not in cm.cmap_d:
if cmap not in cm.cmap_d.values():
cmaps = [(cmap, cmap.name)] + cmaps
imagedata = [
('Label', label),
Expand Down