itom.plot1

itom.plot1(data, xData = None, className = '', properties = {}) → plots a dataObject as an 1d plot in a new figure

Plots an existing dataObject in a dockable, not blocking window.

If a xData is given, the plot uses this vector for the values of the x axis of the plot.

The plot type of this function is ‘1D’.

Every plot has several properties that can be configured in the Qt Designer (if the plot is embedded in a GUI), or by the property toolbox in the plot itself or by using the info() method of the corresponding itom.uiItem instance.

Use the ‘properties’ argument to pass a dictionary with properties you want to set.

Parameters

data : {DataObject}

Is the data object whose region of interest will be plotted.

xData : {DataObject}, optional

Is the data object whose values are used for the axis.

className : {str}, optional

class name of the desired 1D plot (if not indicated default plot will be used, see application settings)

properties : {dict}, optional

optional dictionary of properties that will be directly applied to the plot widget.

Returns

index : {int}

This index is the figure index of the plot figure that is opened by this command. Use figure(index) to get a reference to the figure window of this plot. The plot can be closed by ‘close(index)’.

plotHandle: {plotItem} :

Handle of the plot. This handle is used to control the properties of the plot, connect to its signals or call slots of the plot.