hyperspyui.widgets.contrastwidget module
Created on Wed Oct 29 16:49:48 2014
@author: Vidar Tonaas Fauske
- class hyperspyui.widgets.contrastwidget.ContrastWidget(main_window, parent, figure=None)
Bases:
hyperspyui.widgets.extendedqwidgets.FigureWidget
- LevelLabel = 'Level'
- WindowLabel = 'Window'
- _on_figure_change(figure)
Called when a connected update triggers. If the window is valid, it sets up the traitsui dialog capture, and calls cb_make_dialog. If the window is invalid, it clears the widget.
- _plot_minmax()
- auto(state)
- create_controls()
- disable()
- enable(enabled=True)
- level_changed(value)
- log_changed(value)
- reset_level()
- reset_window()
- update_controls_from_fig()
- window_changed(value)
- hyperspyui.widgets.contrastwidget._auto_contrast(plot)
- hyperspyui.widgets.contrastwidget._set_auto_contrast(plot, auto)
- hyperspyui.widgets.contrastwidget.tr(text)