XYCreate creates a new 2D dataset from a single value as a horizontal or vertical line.
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 is the name for the dataset.
rvX is a scalar value with x-coordinate or y-coordinate.
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);
See also
id-1203610