DADiSP Worksheet Functions > Function Categories > Annotation > DLNABS

 

DLNABS

Purpose:

Draws a line from the current cursor position to the specified point.

Syntax:

DLNABS(x, y, color, style)

x

-

A real. The X coordinate of the line segment.

y

-

A real. The Y coordinate of the line segment.

color

-

An integer. The color value. Defaults to the color of the primary series.

style

-

An integer. The line style parameter:

0:

No visible line

1:

Solid (default)

2:

Dashed

3:

Dotted

Example:

gsin(100,0.01);dlnabs(0.2,-1,lblue);dlnabs(0.3,-1,lblue);dlnabs(0.25,0,lblue)

 

draws a triangle connecting the three (x, y) pairs.

Remarks:

The coordinates are in "absolute" or "world" coordinates, those of the data displayed in the Window. The style parameter controls how the line is drawn.

 

The function also relocates the cursor to the endpoint of the line.

 

Unlike LINECUR, this formula has no effect if executed when the Window is activated. It must be part of the Window formula to have an effect.

See Also:

DPTABS

LINEANN

LINECUR