Hi,
Please make sure there is "Data1" worksheet window in current project.
void Try()
{
GraphPage gPage;
gPage.Create("Origin");
GraphLayer lay;
lay = gPage.Layers(0);
// a dataplot in the layer that uses Data1_Time as Y and Data1_Test1 as X
Curve cc("Data1_Time", "Data1_Test1");
int nPlotIndex = lay.AddPlot(cc, IDM_PLOT_SCATTER);
out_int("nPlotIndex = ", nPlotIndex);
// use the third column in the worksheet "Data1" for error bar:
Column colErrBar("Data1", 2);
nPlotIndex = lay.AddErrBar(cc, colErrBar);
out_int("nPlotIndex = ", nPlotIndex);
lay.Rescale();
}
Iris