Previous topic

XYShowMarkerOrgData

Next topic

XYUpdate

This Page

XYThresholdCreateΒΆ

XYCreate creates a new 2D dataset from a single value as a horizontal or vertical line.

hData = XYThresholdCreate(ssName, rsValue, nType)

Return Value

If the function succeeds, the return value is the handle of the newly created 2D dataset. If the function fails, the return value is 0.

Parameters

ssName

ssName is the name for the dataset.

rvX

rvX is a scalar value with x-coordinate or y-coordinate.

nType

nType sets the type. For a vertical line the value is XY_THRESHOLD_XCONST and for a horizontal line the value is XY_THRESHOLD_YCONST

Example

* hData = XYThresholdCreate("Test", 12, XY_THRESHOLD_YCONST);
* hLayer = LayerCreate();
* hDoc = DocCreate();
* hPage = PageCreate();
* DocAddPage(hDoc, hPage);
* PageAddLayer(hPage, hLayer);
* LayerAddDataset(hLayer, hData);
* LayerAutoScale(hLayer);
* PageReplot(hPage);

id-1203610