2.2.4.23.4 GroupPlot::GroupPlot

Description

Default constructor which constructs an unattached GroupPlot.


Copy constructor which constructs a GroupPlot object from an existing GroupPlot.

Syntax

GroupPlot( )


GroupPlot( const GroupPlot & gp )

Parameters

gp

Return

Examples

void Ex1()
{
	//assume the active graphlayer has at least two dataplots on it
	GraphLayer gl = Project.ActiveLayer();

	GroupPlot gPlot;
	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());
	}
	return;
}

Remark

See Also

Header to Include

origin.h