7.5.5.1.3. pymodaq_gui.plotting.data_viewers.viewer0D module

class pymodaq_gui.plotting.data_viewers.viewer0D.DataDisplayer(plotitem: PlotItem, 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]

Bases: QObject

This Object deals with the display of 0D data on a plotitem

Attributes:
Ndata
axis
legend
legend_names

Methods

clear_data

labels_changed

show_min_max

update_axis

update_colors

update_data

update_display_items

updated_item

clear_data()[source]
show_min_max(show=True)[source]
update_axis(history_length: int)[source]
update_colors(colors: List[QPen])[source]
update_data(data: DataWithAxes, force_update=False)[source]
update_display_items(data: DataWithAxes = None)[source]
property Ndata
property axis
labels_changed

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

property legend: LegendItem
property legend_names: List[str]
updated_item

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

class pymodaq_gui.plotting.data_viewers.viewer0D.View0D(parent_widget: QWidget = None, show_toolbar=True, no_margins=False)[source]

Bases: ActionManager, QObject

Attributes:
plotitem

Methods

setup_actions()

Method where to create actions to be subclassed.

add_data_displayer

display_data

get_double_clicked

remove_data_displayer

show_data_list

add_data_displayer(displayer_name: str, 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]
display_data(data: DataWithAxes, displayer: str = None, **kwargs)[source]
get_double_clicked()[source]
remove_data_displayer(displayer_name: str)[source]
setup_actions()[source]

Method where to create actions to be subclassed. Mandatory

Examples

>>> self.add_action('Quit', 'close2', "Quit program")
>>> self.add_action('Grab', 'camera', "Grab from camera", checkable=True)
>>> self.add_action('Load', 'Open', "Load target file (.h5, .png, .jpg) or data from camera", checkable=False)
>>> self.add_action('Save', 'SaveAs', "Save current data", checkable=False)

See also

ActionManager.add_action

show_data_list(state=None)[source]
property plotitem
class pymodaq_gui.plotting.data_viewers.viewer0D.Viewer0D(parent=None, title='', show_toolbar=True, no_margins=False)[source]

Bases: ViewerBase

this 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

update_colors(colors: list, displayer=None)[source]
property labels
pymodaq_gui.plotting.data_viewers.viewer0D.main()[source]
pymodaq_gui.plotting.data_viewers.viewer0D.main_view()[source]