8.5.5.4.2. pymodaq_gui.plotting.utils.filter module

class pymodaq_gui.plotting.utils.filter.Filter[source]

Bases: object

Methods

filter_data

register_activation_signal

register_target_slot

set_active

filter_data(data)[source]
register_activation_signal(activation_signal)[source]
register_target_slot(slot)[source]
set_active(activate=True)[source]
class pymodaq_gui.plotting.utils.filter.Filter1DFromCrosshair(crosshair)[source]

Bases: Filter

Methods

update_axis

update_axis(axis)[source]
class pymodaq_gui.plotting.utils.filter.Filter1DFromRois(roi_manager)[source]

Bases: Filter

Parameters:

Methods

get_data_from_roi

get_slice_from_roi

update_axis

get_data_from_roi(roi, roi_param, data)[source]
Return type:

DataToExport

get_slice_from_roi(roi, data)[source]
Return type:

slice

update_axis(axis)[source]
class pymodaq_gui.plotting.utils.filter.Filter2DFromCrosshair(crosshair, graph_items, image_keys)[source]

Bases: Filter

Methods

mapfromview(x, y[, item_key])

get item coordinates from view coordinates :type x: (float) x coordinate in the view reference frame :param x: :type x: (float) x coordinate in the view reference frame :type y: (float) y coordinate in the view refernece frame :param y: :type y: (float) y coordinate in the view refernece frame

get_data_from_spread

get_data_from_uniform

set_active

set_graph_items

get_data_from_spread(dwa)[source]
Return type:

DataToExport

get_data_from_uniform(dwa)[source]
Return type:

DataToExport

mapfromview(x, y, item_key='red')[source]

get item coordinates from view coordinates :type x: (float) x coordinate in the view reference frame :param x: :type x: (float) x coordinate in the view reference frame :type y: (float) y coordinate in the view refernece frame :param y: :type y: (float) y coordinate in the view refernece frame

Returns:

  • x ((float) coordinate in the item reference frame)

  • y ((float) coordinate in the item reference frame)

set_active(activate=True)[source]
set_graph_items(graph_items)[source]
class pymodaq_gui.plotting.utils.filter.Filter2DFromRois(roi_manager, graph_item, image_keys)[source]

Bases: Filter

Filters 2D data using 2D ROIs

Parameters:
  • roi_manager (ROIManager)

  • graph_item (UniformImageItem) – The graphical item where data and ROIs are plotted

  • image_keys ((list) list of string identifier to link datas to their graph_items. This means that in) – _filter_data, datas.data[key] is plotted on graph_items[key] for key in image_keys

Methods

get_slices_from_roi

get_xydata_from_roi

get_xydata_spread

get_slices_from_roi(roi, data_shape)[source]
Return type:

Tuple[slice, slice]

get_xydata_from_roi(roi, dwa, math_function)[source]
Return type:

DataToExport

get_xydata_spread(data, roi)[source]
class pymodaq_gui.plotting.utils.filter.FourierFilterer(parent=None)[source]

Bases: QObject

Methods

show_data(data)

show data and fft :type data: (dict) with keys 'data', optionally 'xaxis' and 'yaxis' :param data: :type data: (dict) with keys 'data', optionally 'xaxis' and 'yaxis'

calculate_fft

filter_changed

setUI

set_data

update_filter

update_plot

calculate_fft()[source]
setUI()[source]
set_data()[source]
show_data(data)[source]

show data and fft :type data: (dict) with keys 'data', optionally 'xaxis' and 'yaxis' :param data: :type data: (dict) with keys 'data', optionally 'xaxis' and 'yaxis'

update_filter()[source]
update_plot()[source]