LinePlot.GetNumLines

Prototypes

int GetNumLines()

Parameters

None

Remarks

This method returns the number of lines in the plot. If the plot uses group variables, this method returns the number of groups defined by the group variables. If the plot does not use group variables, this method returns the number of Y variables used by the plot.

Example
x = {1 2 3 4 5 1 2 4};
y = {1 2 3 4 5 2 3 1};
groups = { "A" "A" "A" "A" "A" "B" "B" "B" };
declare DataObject dobj;
dobj = DataObject.Create( "Example" );
dobj.AddVar( "X", x );
dobj.AddVar( "Y", y );
dobj.AddVar( "Groups", groups );
declare LinePlot plot;
plot = LinePlot.CreateWithGroup( dobj, "X", "Y", "Groups" );
NumLines = plot.GetNumLines();
print NumLines;