data.label.pos

Syntax

Vector Access

v = data.label.pos(lp<,i>)
data.label.pos(lp<,i>) = v

Get/set the position. The text and a line or arrow are drawn from this position to the end position (specified with data.label.end).

Returns:

v - position vector or component

Accepts:

v - position vector or component

Arguments:

lp - label pointer

i - optional vector component

Component Access

f = data.label.pos.x(lp)
data.label.pos.x(lp) = f

Get/set the \(x\)-component of the position.

Returns:f - \(x\)-component of the position vector
Accepts:f - \(x\)-component of the position vector
Arguments:lp - label pointer
f = data.label.pos.y(lp)
data.label.pos.y(lp) = f

Get/set the \(y\)-component of the position.

Returns:f - \(y\)-component of the position vector
Accepts:f - \(y\)-component of the position vector
Arguments:lp - label pointer
f = data.label.pos.z(lp) (3D only)
data.label.pos.z(lp) = f (3D only)

Get/set the \(z\)-component of the position.

Returns:f - \(z\)-component of the position vector
Accepts:f - \(z\)-component of the position vector
Arguments:lp - label pointer