XYRange

 

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
GetData It extracts x, y, y error data from XYRange. Examples
GetDatasetNames Get dataset names of XYRange Examples
GetDescription To get description of XYRange Examples
GetErrColumn To get Y Error column of XYRange Examples
GetPlot Get a dataplot generated by this datarange Examples
GetXColumn To get X column of XYRange Examples
GetYColumn To get Y column of XYRange Examples
MakeFullRowRange Create new XYRange with full row range Examples
MakePlot To make plot with XYRange Examples
SetData It sets x, y, y error data from XYRange. Examples
XYRange Constructor of XYRange class Examples