plotΒΆ

plot plots a x/y curve.

rvHandle = plot(rvX, rvY)
rvHandle = plot(rvX, rvY, handle)

Return Value

rvHandle is a vector with three elements:

Value

Meaning

rvHandle[1]

Handle of the page

rvHandle[2]

Handle of the diagram (Layer)

rvHandle[3]

Handle of the dataset

Parameters

rvX

rvX is a real vector with x coordinates

rvY

rvY is a real vector with y coordinates

handle

handle is a layer handle or a page handle. If handle is a layer handle the curve will be added to specified layer. If handle is a page handle, a new layer will be created and added to the specified page.

Example

The following example will create a diagram with a sine and a cosine curve

x = linspace(0, 2*PI);
y = sin(x);
h1 = plot(x, y);
y = cos(x)
h2 = plot(x, y, h1[2]);

id-1857435