8.5.5.1.4. pymodaq_gui.plotting.data_viewers.viewer1D module
- class pymodaq_gui.plotting.data_viewers.viewer1D.DataDisplayer(plotitem, flip_axes=False, plot_colors=<pymodaq_utils.utils.PlotColors object>)[source]
Bases:
QObjectThis Object deals with the display of 1D data on a plotitem
- Attributes:
- Ndata
- labels
- legend
Methods
get_axis
get_plot_item
get_plot_items
labels_changed
legend_items
plot_with_scatter
show_overlay
update_axis
update_colors
update_data
update_display_items
update_errors
update_plot
update_scatter
update_sort
update_xy
update_xyplot
updated_item
- update_data(data, do_xy=False, sort_data=False, force_update=False, do_scatter=False, show_errors=False)[source]
- property Ndata
- property labels
- property legend
- class pymodaq_gui.plotting.data_viewers.viewer1D.View1D(parent_widget=None, show_toolbar=True, no_margins=False, flip_axes=False)[source]
Bases:
ActionManager,QObject- Attributes:
axisGet the current axis used to display data
- plotitem
Methods
Convenience function from the Crosshair
Convenience function from the Crosshair
Uncheck things if xyplot is active
set_crosshair_position(*positions)Convenience function from the Crosshair
update_roi_channels(roi_name)Update the use_channel setting each time a ROI is added
add_data_displayer
add_plot_item
add_roi_displayer
connect_things
display_data
display_roi_lineouts
do_math
get_double_clicked
lock_aspect_ratio
move_roi_target
prepare_ui
remove_data_displayer
remove_roi_displayer
setup_widgets
show_ROI_select
show_hide_crosshair
update_colors
update_crosshair_data
- property axis
Get the current axis used to display data
- data_displayer: DataDisplayer
- lineout_widgets: qtpy.QtWidgets.QWidget
- other_data_displayers: Dict[str, DataDisplayer]
- plot_widget: PlotWidget
- property plotitem
- class pymodaq_gui.plotting.data_viewers.viewer1D.Viewer1D(parent=None, title='', show_toolbar=True, no_margins=False, flip_axes=False)[source]
Bases:
ViewerBaseDataWithAxis of type Data1D can be plotted using this data viewer
- show_data:
parameter: * dwa: a DataWithaxis * scatter_dwa: an optional extra DataWithAxis to be plotted with scatter points
it could define extra_attributes such as symbol: str (to define the symbol layout default: ‘o’) and symbol_size: int (to define the symbol size)
- Attributes:
crosshairConvenience method
- labels
roi_managerConvenience method
roi_targetTo be implemented if necessary (Viewer1D and above)
Methods
activate_roi([activate])move_roi_target([pos])move a specific read only ROI at the given position on the viewer
set_crosshair_position(xpos[, ypos])Convenience method to set the crosshair positions
add_plot_item
crosshair_changed
double_clicked
get_axis_from_view
prepare_connect_ui
process_crosshair_lineouts
process_roi_lineouts
roi_changed
selected_region_changed
update_colors
update_status
- move_roi_target(pos=None)[source]
move a specific read only ROI at the given position on the viewer
- property crosshair
Convenience method
- property labels
- property roi_manager
Convenience method
- property roi_target: InfiniteLine