mantidimaging.gui.widgets.spectrum_widgets.fitting_display_widget module#
- class mantidimaging.gui.widgets.spectrum_widgets.fitting_display_widget.FittingDisplayWidget(parent: QWidget | None = None)[source]#
Bases:
QWidget
Widget for displaying fitting-related spectrum plot using the reusable SpectrumPlotWidget.
- get_selected_fit_region() FittingRegion [source]#
- initial_fit_line: PlotDataItem | None = None#
- set_default_region(x_data: ndarray, y_data: ndarray) None [source]#
Position the ROI centrally over the plotted data, if valid data.
- set_selected_fit_region(region: tuple[float, float]) None [source]#
Set the horizontal (X-axis) range of the ROI.
- show_fit_line(x_data: ndarray, y_data: ndarray, *, color: tuple[int, int, int], label: str, initial: bool) None [source]#
Plot a single fit line (initial or fitted) on the spectrum plot, removing any previous fit line.
- Args:
x_data: The x-axis data for the fit line. y_data: The y-axis data for the fit line. color: The RGB color tuple for the line. label: The legend label for the line. initial: True if this is the initial fit, False if fitted curve.
- show_roi_on_thumbnail_from_widget(roi_widget: SpectrumROI) None [source]#
Copy ROI size and color from the main image window ROI to the thumbnail overlay.
- unit_changed#
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.