roi_line_plot

class pdsspect.roi_line_plot.ROILinePlotModel(image_set)[source]

Bases: pdsspect.roi_plot.ROIPlotModel

Model for ROI Line plot and widget

add_selected_color(color)

Select a color and inform views to display new color

Parameters:color (str) – The color to add
data_with_color(color)[source]

Get the data inside the ROI color if the image has a wavelength

Parameters:color (str) – The color of the ROI
Returns:data – Sorted list of arrays of data by wavelength
Return type:list or numpy.ndarray
has_multiple_views

bool – True if there are multiple views, False otherwise

image_set

PDSSpectImageSet – Image set that corresponds with the current view

image_sets

list – All the image sets, including the current one

register(view)

Register view with the model

remove_selected_color(color)

Remove a selected color and inform views to not display the color

Parameters:color (str) – The color to remove
unit

str – Latex version of pdsspect_image_set.PDSSpectImageSet.unit

unregister(view)

Unregister view with the model

view_index

int – The index of the view to display the ROI data

If there are not multiple views, view_index is automatically -1.

wavelengths

list – Sorted list of wavelengths in the image_set

class pdsspect.roi_line_plot.ROILinePlotController(model, view)[source]

Bases: pdsspect.roi_plot.ROIPlotController

Controller for ROILinePlotWidget

color_state_changed(color)

Select or remove the color when a checkbox color changes

Parameters:color (str) – The name of the checkbox whose state changed
remove_color(color)

Remove a given color

Parameters:color (str) – The color to remove
select_color(color)

Selected a given color

Parameters:color (str) – The color to select
set_view_index(index)

Set the index of the view

Parameters:index (int) – Index of the view
class pdsspect.roi_line_plot.ROILinePlotWidget(model)[source]

Bases: pdsspect.roi_plot.ROIPlotWidget

Widget to hold line plot and check boxes

Parameters:model (ROILinePlotModel) – The model
model

ROILinePlotModel – The model

controller

ROILinePlotController – The controller

class pdsspect.roi_line_plot.ROILinePlot(model)[source]

Bases: pdsspect.roi_plot.ROIPlot

Line plot of ROI data

Parameters:model (ROILinePlotModel) – The model
model

ROILinePlotModel – The model

set_data()[source]

Set the data of the selected colors on the line plot