def _setup_scale_widgets(self): self.scale = [self.scaleMinBox.value(), self.scaleMaxBox.value()] self.colormapBox.addItems(get_colormap_list()) self.colormapBox.setCurrentIndex(51) # jet self.colormapBox.currentIndexChanged.connect(self.update_colormap) self.scaleMinBox.valueChanged.connect(self.set_lut_range) self.scaleMaxBox.valueChanged.connect(self.set_lut_range) self.rescaleButton.clicked.connect(self.rescale)
def _add_colormaps(glbs): from guiqwt.colormap import get_colormap_list for cmap_name in get_colormap_list(): glbs[cmap_name] = lambda name=cmap_name: colormap(name) glbs[cmap_name].__doc__ = "Set color map to '%s'" % cmap_name
def _add_colormaps(glbs): from guiqwt.colormap import get_colormap_list for cmap_name in get_colormap_list(): glbs[cmap_name] = lambda name=cmap_name: colormap(name) glbs[cmap_name].__doc__ = "Set color map to '%s'" % cmap_name