diff --git a/lib/matplotlib/backends/qt_editor/figureoptions.py b/lib/matplotlib/backends/qt_editor/figureoptions.py index 6a485302f4e9..c044979dee96 100644 --- a/lib/matplotlib/backends/qt_editor/figureoptions.py +++ b/lib/matplotlib/backends/qt_editor/figureoptions.py @@ -139,10 +139,12 @@ def prepare_data(d, init): cmap = image.get_cmap() if cmap not in cm.cmap_d.values(): cmaps = [(cmap, cmap.name)] + cmaps + low, high = image.get_clim() imagedata = [ ('Label', label), - ('Colormap', [cmap.name] + cmaps) - ] + ('Colormap', [cmap.name] + cmaps), + ('Min. value', low), + ('Max. value', high)] images.append([imagedata, label, ""]) # Is there an image displayed? has_image = bool(images) @@ -199,9 +201,10 @@ def apply_callback(data): # Set / Images for index, image_settings in enumerate(images): image = imagedict[imagelabels[index]] - label, cmap = image_settings + label, cmap, low, high = image_settings image.set_label(label) image.set_cmap(cm.get_cmap(cmap)) + image.set_clim(*sorted([low, high])) # re-generate legend, if checkbox is checked if generate_legend:
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: