8.5.5.4.3. pymodaq_gui.plotting.utils.lineout module
Created the 03/11/2022
@author: Sebastien Weber
- class pymodaq_gui.plotting.utils.lineout.LineoutPlotter(graph_widgets, roi_manager, crosshair)[source]
Bases:
QObjectBase class to manage and display data filtered out into lineouts (1D, 0D)
Should be inherited and subclass some methods as appropriate
- Parameters:
graph_widgets (
OrderedDict) – Includes plotwidgets to display dataroi_manager (
ROIManager) – The ROIManager to create ROIs and manage their propertiescrosshair (
Crosshair) – The Crosshair object
Methods
add_lineout_items(*curve_items)Add Curve items sequentially to lineouts widgets: (hor, ver and int) :type curve_items:
(PlotCurveItem) at most 3ofthem:param curve_items: :type curve_items:(PlotCurveItem) at most 3ofthemadd_roi_lineout_items(index, pen)Add specifics lineouts generated from ROIs :type index:
(int) indexofthe ROI generating these lineouts:param index: :type index:(int) indexofthe ROI generating these lineouts:type pen:(str,tuple) any argument abletogenerate a QPen,see pyqtgraph.functions.mkPen:param pen: :type pen:(str,tuple) any argument abletogenerate a QPen,see pyqtgraph.functions.mkPenGet the dictionary (one key by ImageItem, see IMAGE_TYPES) containing dicts with PlotCurveItem
Get the dictionary (one key by ROI) containing dicts with ROI PlotCurveItem
remove_lineout_items(*curve_items)Remove Curve items sequentially to lineouts widgets: (hor, ver and int) :type curve_items:
(PlotCurveItem) at most 3ofthem:param curve_items: :type curve_items:(PlotCurveItem) at most 3ofthemremove_roi_lineout_items(index)Remove specifics lineouts generated from ROI referenced by a unique integer :type index:
(int) indexofthe ROI generating these lineouts:param index: :type index:(int) indexofthe ROI generating these lineoutsto reimplement if needed
show_crosshair_curves(curve_key[, show])to reimplement if needed
add_ROI
crosshair_clicked
crosshair_lineout_plotted
get_crosshair_curve_triplet
get_lineout_widget
plot_crosshair_lineouts
plot_other_crosshair_lineouts
plot_other_lineouts
plot_roi_lineouts
remove_ROI
roi_changed
roi_clicked
roi_lineout_plotted
update_roi
- add_lineout_items(*curve_items)[source]
Add Curve items sequentially to lineouts widgets: (hor, ver and int) :type curve_items:
(PlotCurveItem) at most 3ofthem:param curve_items: :type curve_items:(PlotCurveItem) at most 3ofthem
- add_roi_lineout_items(index, pen)[source]
Add specifics lineouts generated from ROIs :type index:
(int) indexofthe ROI generating these lineouts:param index: :type index:(int) indexofthe ROI generating these lineouts:type pen:(str,tuple) any argument abletogenerate a QPen,see pyqtgraph.functions.mkPen:param pen: :type pen:(str,tuple) any argument abletogenerate a QPen,see pyqtgraph.functions.mkPen
- get_crosshair_curves_triplet()[source]
Get the dictionary (one key by ImageItem, see IMAGE_TYPES) containing dicts with PlotCurveItem
- get_roi_curves_triplet()[source]
Get the dictionary (one key by ROI) containing dicts with ROI PlotCurveItem
- remove_lineout_items(*curve_items)[source]
Remove Curve items sequentially to lineouts widgets: (hor, ver and int) :type curve_items:
(PlotCurveItem) at most 3ofthem:param curve_items: :type curve_items:(PlotCurveItem) at most 3ofthem
- remove_roi_lineout_items(index)[source]
Remove specifics lineouts generated from ROI referenced by a unique integer :type index:
(int) indexofthe ROI generating these lineouts:param index: :type index:(int) indexofthe ROI generating these lineouts
- lineout_widgets = ['int']
- pymodaq_gui.plotting.utils.lineout.curve_item_factory(pen='red')[source]
Create a PlotCurveItem with the given pen :type pen:
any typeofarguments accepted by pyqtgraph.function.mkColororoneofthe COLORS_DICT key:param pen: :type pen:any typeofarguments accepted by pyqtgraph.function.mkColororoneofthe COLORS_DICT key- Return type:
PlotCurveItem