2.2.4.8.31 DataPlot::SetActive

Description

Set data plot to be the ActiveCurve.

Syntax

int SetActive( int nMarkerLeft = -1, int nMarkerRight = -1 )

Parameters

nMarkerLeft
[input] left marker if >= 0.
nMarkerRight
[input] right marker if left was on and > left.

Return

previous ActiveCurve index in layer.

Examples

EX1

void DataPlot_SetActive_ex1()
{
    Worksheet wks;
    wks.Create("origin");
    Dataset ds1(wks,0);
    Dataset ds2(wks,1);
    ds1.Data(1,20,1);
    ds2.Normal(20);
    GraphPage gp;
    gp.Create("origin");
    GraphLayer gl(gp.GetName(), 0);
    gl.AddPlot(wks);
    
    if(gl)
    {
        DataPlot dp;
        dp = gl.DataPlots(0);    
        dp.SetActive(2,5);
    }
}

Remark

See Also

Header to Include

origin.h