Default constructor which constructs an unattached GroupPlot.
Copy constructor which constructs a GroupPlot object from an existing GroupPlot.
GroupPlot( const GroupPlot & gp )
//assume the active graphlayer has at least two dataplots on it
GraphLayer gl = Project.ActiveLayer();
gPlot= gl.Groups(0); //get first groupplot object
int nMiddle = (0 + gPlot.GetCount())/2;
DataPlot dp = gPlot.GetDataPlot(nMiddle); //get the middle of all dataplots
if ( dp )
printf("The %dth DataPlot is %s", nMiddle, dp.GetDatasetName());