def update_mincolor_from_control(self): """ takes control panel input and changes the current tab's min color for the displayed graph """ self.current_tab.dataview.currentminvalcolor = int( self.window.mincolor.text()) plot_tools.plot_image(self.current_tab.img, self.current_tab.img_axes, self.current_tab.data, self.current_tab.dataview)
def update_image_from_slider(self, sliderval): if self.dataview.display_ev: self.dataview.slider_val = sliderval - 1 else: self.dataview.slider_val = self.dataview.number_of_slices - sliderval plot_tools.plot_image(self.img, self.img_axes, self.data, self.dataview) self.update_control()
def update_maxcolor_from_control(self): """ takes control panel input and changes the current tab's max color for the displayed graph """ self.current_tab.dataview.currentmaxvalcolor = int(self.window.maxcolor.text()) plot_tools.plot_image(self.current_tab.img, self.current_tab.img_axes, self.current_tab.data, self.current_tab.dataview)
def show_wavelength(self): self.dataview.display_ev = False self.change_display() plot_tools.plot_image(self.img, self.img_axes, self.data, self.dataview)
def show_ev(self): self.dataview.display_ev = True self.change_display() plot_tools.plot_image(self.img, self.img_axes, self.data, self.dataview)