DPLOT namespace

Interactive DataPlot windows, curves and plotting utilities.

Symbols in this namespace: 8

SymbolKindCategoryDescription
DPLOT.ADDXYCommandInteractive DataPlot statementsAdds an X/Y numeric channel to an interactive DataPlot window. xValues and yValues can be arrays or numeric text lists and must have the same length.
DPLOT.ADDYCommandInteractive DataPlot statementsAdds a Y-only numeric channel to an interactive DataPlot window. The X axis is generated as 0..N-1. yValues can be an array, numeric text list, or single numeric value.
DPLOT.BINSCommandInteractive DataPlot statementsChanges the number of bins used by the DataPlot histogram panel.
DPLOT.CLEARCommandInteractive DataPlot statementsRemoves all channels from an interactive DataPlot window.
DPLOT.COMMON_RANGECommandInteractive DataPlot statementsEnables or disables a common histogram range across all DataPlot channels.
DPLOT.CREATEFunctionInteractive DataPlot functionsCreates an interactive DataPlot MDI window and returns a numeric handle used by DPLOT.ADDY, DPLOT.ADDXY and the other DPLOT commands.
DPLOT.MODECommandInteractive DataPlot statementsSets the interactive DataPlot mode: READOUT, ZOOM, or PAN.
DPLOT.NORMALIZECommandInteractive DataPlot statementsEnables or disables normalized histogram display in a DataPlot window.

DPLOT.ADDXY

STATEMENTDPLOTGUI / INTERACTIVE
Kind: Command   Category: Interactive DataPlot statements   Namespace: DPLOT

DPLOT.ADDXY handle, channelName, xValues, yValues [, color]

Adds an X/Y numeric channel to an interactive DataPlot window. xValues and yValues can be arrays or numeric text lists and must have the same length.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
colorOptional plot/drawing color value.

Minimal example

DIM x(100)
DIM y(100)
FOR i = 0 TO 99
    x(i) = i * 0.05
    y(i) = MATH.EXP(-x(i) * 0.05) * MATH.SIN(x(i))
NEXT
p = DPLOT.CREATE("XY signal")
DPLOT.ADDXY p, "damped sine", x, y

DPLOT.ADDY

STATEMENTDPLOTGUI / INTERACTIVE
Kind: Command   Category: Interactive DataPlot statements   Namespace: DPLOT

DPLOT.ADDY handle, channelName, yValues [, color]

Adds a Y-only numeric channel to an interactive DataPlot window. The X axis is generated as 0..N-1. yValues can be an array, numeric text list, or single numeric value.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
colorOptional plot/drawing color value.

Minimal example

DIM y(100)
FOR i = 0 TO 99
    y(i) = MATH.SIN(i * 0.1)
NEXT
p = DPLOT.CREATE("Y signal")
DPLOT.ADDY p, "sin(i)", y, "#ff0000"

DPLOT.BINS

STATEMENTDPLOTGUI / INTERACTIVE
Kind: Command   Category: Interactive DataPlot statements   Namespace: DPLOT

DPLOT.BINS handle, bins

Changes the number of bins used by the DataPlot histogram panel.

Minimal example

DPLOT.BINS p, 256

DPLOT.CLEAR

STATEMENTDPLOTGUI / INTERACTIVE
Kind: Command   Category: Interactive DataPlot statements   Namespace: DPLOT

DPLOT.CLEAR handle

Removes all channels from an interactive DataPlot window.

Minimal example

DPLOT.CLEAR p

DPLOT.COMMON_RANGE

STATEMENTDPLOTGUI / INTERACTIVE
Kind: Command   Category: Interactive DataPlot statements   Namespace: DPLOT

DPLOT.COMMON_RANGE handle, enabled

Enables or disables a common histogram range across all DataPlot channels.

Minimal example

DPLOT.COMMON_RANGE p, 1

DPLOT.CREATE

FUNCTIONDPLOTGUI / INTERACTIVE
Kind: Function   Category: Interactive DataPlot functions   Namespace: DPLOT

DPLOT.CREATE(title [, bins [, normalize [, commonRange]]])

Creates an interactive DataPlot MDI window and returns a numeric handle used by DPLOT.ADDY, DPLOT.ADDXY and the other DPLOT commands.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
binsNumber of histogram bins.
normalizeOptional parameter. If omitted, the command uses its internal default.
commonRangeOptional parameter. If omitted, the command uses its internal default.

Minimal example

p = DPLOT.CREATE("Interactive signal", 128, 0, 1)

DPLOT.MODE

STATEMENTDPLOTGUI / INTERACTIVE
Kind: Command   Category: Interactive DataPlot statements   Namespace: DPLOT

DPLOT.MODE handle, mode

Sets the interactive DataPlot mode: READOUT, ZOOM, or PAN.

Minimal example

DPLOT.MODE p, "READOUT"

DPLOT.NORMALIZE

STATEMENTDPLOTGUI / INTERACTIVE
Kind: Command   Category: Interactive DataPlot statements   Namespace: DPLOT

DPLOT.NORMALIZE handle, enabled

Enables or disables normalized histogram display in a DataPlot window.

Minimal example

DPLOT.NORMALIZE p, 1