auto_xy_LabelDatasetΒΆ

auto_xy_LabelDataset labels the first or last point of a 2D dataset with its name.

hText = auto_xy_LabelDataset(hData)
hText = auto_xy_LabelDataset(hData, rvOffsetCM)
hText = auto_xy_LabelDataset(hData, rvOffsetCM, bShowHelpLine)
hText = auto_xy_LabelDataset(hData, rvOffsetCM, bShowHelpLine, nType)
hText = auto_xy_LabelDataset(hData, rvOffsetCM, bShowHelpLine, nType, rsXPos)

Return Value

hText is the handle of the created text object or 0 is the function failed.

Parameters

hData

hData is the handle of a 1D or 2D dataset.

rvOffsetCM

rvOffsetCM is a vector with two elements:

Value

Meaning

rvOffsetCM[1]

Offset of the text in x direction in centimeters.

rvOffsetCM[2]

Offset of the text in y direction in centimeters.

bShowHelpLine

If bShowHelpLine is TRUE (1) a line will be drawn from a datapoint to the text.

nType

nType is one of the following values (default is 1):

Value

Meaning

0

Label first data point.

1

Label last data point.

2

Label last data point and set the angle of the text to the gradient of the curve.

rsXPos

rsXPos Draws the text at the specified x coordinate. The coordinate is specified in the coordinatesystem of the diagram.

id-97051