2.2.4.48 XYRange


Contents

Name

XYRange

Remark

The XYRange class provides methods to get, put the data range with one independent(X) and one dependent(Y) dataset for matrix and worksheet window, and do plot on a graph window. Same as DataRange class, itself does not hold data, just keep the data range with page name, sheet name (layer index for graph) and row/column indices (data plot index for graph). One XYRange object allow containing multiple sub XY data ranges.

The XYRange class is derived from the DataRange class from which it inherits methods and properties.

Hierarchy

Examples

EX1

void XYRange_XYRange_ex1()
{
	//assume there exists an worksheet with at least two columns
	Worksheet wks = Project.ActiveLayer();
	if ( wks )
	{
		DataRange dataRange;
		dataRange.Add(wks, 0, "X", 0, 0, 4);
		dataRange.Add(wks, 1, "Y", 1, 0, 4); //four data in each sub range
		
		XYRange xyCloned(dataRange);
		string strDescription = xyCloned.GetDescription();
		out_str(strDescription);
		return;
	}
}

Header to Include

origin.h

Reference

Members

Name Brief Example
It extracts x, y, y error data from XYRange.
Get dataset names of XYRange
To get description of XYRange
To get Y Error column of XYRange
Get a dataplot generated by this datarange
To get X column of XYRange
To get Y column of XYRange
Create new XYRange with full row range
To make plot with XYRange
It sets x, y, y error data from XYRange.
Constructor of XYRange class