NewDataRange

It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021.

 

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)