| Home | | | Quick start | | | Cookbook | | | All symbols | | | Analytical index | | | Namespaces | | | Syntax | | | Statements | | | CX | | | Frequency | | | Functions | | | Examples | | | Examples by command |
Interactive DataPlot windows, curves and plotting utilities.
Symbols in this namespace: 8
| Symbol | Kind | Category | Description |
|---|---|---|---|
DPLOT.ADDXY | Command | Interactive DataPlot statements | 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. |
DPLOT.ADDY | Command | Interactive DataPlot statements | 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. |
DPLOT.BINS | Command | Interactive DataPlot statements | Changes the number of bins used by the DataPlot histogram panel. |
DPLOT.CLEAR | Command | Interactive DataPlot statements | Removes all channels from an interactive DataPlot window. |
DPLOT.COMMON_RANGE | Command | Interactive DataPlot statements | Enables or disables a common histogram range across all DataPlot channels. |
DPLOT.CREATE | Function | Interactive DataPlot functions | Creates an interactive DataPlot MDI window and returns a numeric handle used by DPLOT.ADDY, DPLOT.ADDXY and the other DPLOT commands. |
DPLOT.MODE | Command | Interactive DataPlot statements | Sets the interactive DataPlot mode: READOUT, ZOOM, or PAN. |
DPLOT.NORMALIZE | Command | Interactive DataPlot statements | Enables or disables normalized histogram display in a DataPlot window. |
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.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
color | Optional plot/drawing color value. |
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, yDPLOT.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.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
color | Optional plot/drawing color value. |
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 handle, bins
Changes the number of bins used by the DataPlot histogram panel.
DPLOT.BINS p, 256DPLOT.CLEAR handle
Removes all channels from an interactive DataPlot window.
DPLOT.CLEAR pDPLOT.COMMON_RANGE handle, enabled
Enables or disables a common histogram range across all DataPlot channels.
DPLOT.COMMON_RANGE p, 1DPLOT.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.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
bins | Number of histogram bins. |
normalize | Optional parameter. If omitted, the command uses its internal default. |
commonRange | Optional parameter. If omitted, the command uses its internal default. |
p = DPLOT.CREATE("Interactive signal", 128, 0, 1)DPLOT.MODE handle, mode
Sets the interactive DataPlot mode: READOUT, ZOOM, or PAN.
DPLOT.MODE p, "READOUT"DPLOT.NORMALIZE handle, enabled
Enables or disables normalized histogram display in a DataPlot window.
DPLOT.NORMALIZE p, 1