8.6.6.1.3. pymodaq_gui.plotting.data_viewers.viewer0D module
- class pymodaq_gui.plotting.data_viewers.viewer0D.DataDisplayer(plotitem, plot_colors=None)[source]
Bases:
QObjectThis Object deals with the display of 0D data on a plotitem
- Attributes:
- Ndata
- axis
- legend
- legend_names
- linewidth
Methods
set_sync_x_axis(sync)When True (default), adding a new channel resets all histories so all curves start from the same x-index.
clear_data
labels_changed
set_use_timestamps
show_min_max
update_axis
update_colors
update_data
update_display_items
update_plots
update_scatter
update_xyplot
updated_item
- set_sync_x_axis(sync)[source]
When True (default), adding a new channel resets all histories so all curves start from the same x-index. When False, existing channels keep their history and the new channel is NaN-padded from the left.
- property Ndata
- property axis
- labels_changed
- property legend: LegendItem
- staticMetaObject = PySide6.QtCore.QMetaObject("DataDisplayer" inherits "QObject": Methods: #4 type=Signal, signature=updated_item(QVariantList), parameters=QVariantList #5 type=Signal, signature=labels_changed(QVariantList), parameters=QVariantList )
- updated_item
- class pymodaq_gui.plotting.data_viewers.viewer0D.View0D(parent_widget=None, show_toolbar=True, no_margins=False, title='')[source]
Bases:
ActionManager,QObject- Attributes:
- plotitem
- title
Methods
add_data_displayer
display_data
get_double_clicked
remove_data_displayer
set_x_axis_type
show_data_list
- add_data_displayer(displayer_name, plot_colors=[{'color': (255, 255, 255)}, {'color': (255, 0, 0)}, {'color': (0, 255, 0)}, {'color': (0, 0, 255)}, {'color': (14, 207, 189)}, {'color': (207, 14, 166)}, {'color': (207, 204, 14)}])[source]
- data_displayer: DataDisplayer
- other_data_displayers: Dict[str, DataDisplayer]
- plot_widget: PlotWidget
- property plotitem
- staticMetaObject = PySide6.QtCore.QMetaObject("View0D" inherits "QObject": )
- class pymodaq_gui.plotting.data_viewers.viewer0D.Viewer0D(parent=None, title='', show_toolbar=True, no_margins=False, rois_dock=None)[source]
Bases:
ViewerBasethis plots 0D data on a plotwidget with history. Display as numbers in a table is possible.
Datas and measurements are then exported with the signal data_to_export_signal
- Attributes:
- labels
Methods
update_colors
- property labels
- staticMetaObject = PySide6.QtCore.QMetaObject("Viewer0D" inherits "ViewerBase": Methods: #13 type=Slot, signature=_show_data(QVariantList), parameters=QVariantList )