auto_xy_CreateDatasetΒΆ
auto_xy_CreateDataset creates a new 2D dataset.
-
hDataNew = auto_xy_CreateDataset(hLayer, ssName, rvX, rvY)
Return Value
hDataNew
Parameters
-
hLayer
hLayer is the handle of the diagram. The handle of a diagram can be received with the PageGetLayerHandle function (see example).
-
ssName
ssName is the dataset name.
-
rvX
rvX is a vector with x-coordinates.
-
rvY
rvY is a vector with y-coordinates.
Example
hPage = auto_LoadTemplate("tpl_ger", "2 Diagramme");
PageSetTitle(hPage, "Example");
hLayer1 = PageGetLayerHandle(hPage, "Diagramm 1");
hLayer2 = PageGetLayerHandle(hPage, "Diagramm 2");
x = linspace(0,2*PI); y = sin(x);
auto_xy_CreateDataset(hLayer1, "Sinus", x, y);
y = cos(x);
auto_xy_CreateDataset(hLayer2, "Cosinus", x, y);
auto_ScaleAxes();
auto_UpdatePage();
auto_SaveDocumentAs("/Example.ipw")
id-633405