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() tuple[float, float][source]#
set_default_region(x_data: ndarray, y_data: ndarray) None[source]#

Position the ROI centrally over the plotted data.

set_selected_fit_region(region: tuple[float, float]) None[source]#

Set the horizontal (X-axis) range of the ROI.

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.

update_image(image: ndarray | None) None[source]#
update_labels(wavelength_range: tuple[float, float] | None = None) None[source]#

Update wavelength range label below the plot, if available.

update_plot(x_data: ndarray, y_data: ndarray, label: str = 'ROI', image: ndarray | None = None) None[source]#