Skip to content

Commit 48aa70d

Browse files
ksundenmeeseeksmachine
authored andcommitted
Backport PR matplotlib#25663: Don't use deprecated cm.get_cmap in qt figureoptions.
1 parent 2b80c16 commit 48aa70d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/matplotlib/backends/qt_editor/figureoptions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def apply_callback(data):
233233
elif len(mappable_settings) == 4:
234234
label, cmap, low, high = mappable_settings
235235
mappable.set_label(label)
236-
mappable.set_cmap(cm.get_cmap(cmap))
236+
mappable.set_cmap(cmap)
237237
mappable.set_clim(*sorted([low, high]))
238238

239239
# re-generate legend, if checkbox is checked

0 commit comments

Comments
 (0)