3.2.31 NewDataRange


Description

Creating a DataRange object.

Syntax

NewDataRange()

Parameters

Return

DataRange

Examples

EX1

import PyOrigin
data=PyOrigin.NewDataRange()
pArr2D = [[x for x in range(32)] for x in range(32)] 
MatrixPage=PyOrigin.MatrixPages('MBook1')
MatrixPage.Layers('MSheet1').MatrixObjects(0).SetData(pArr2D, 0, 0)
aa=data.AddMatrix(MatrixPage.Layers('MSheet1'))
gp = PyOrigin.FindGraphLayer('Graph1')
gp.AddPlot(data, 226)