itom.plot2

itom.plot2(data, properties = {}) → plots a dataObject in a new figure

Plots an existing dataObject in a dockable, not blocking window. The style of the plot depends on the object dimensions.

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

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 to a certain value.

Parameters

data : {DataObject}

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

className : {str}, optional

class name of the desired 2D 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.