8.1.17.3 Matrixsheet::MatrixObjects
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. |
Contents
Description
Return the MatrixObjects collection.
Get MatrixObjects in the MatrixSheet
Syntax
MatrixObjects MatrixObjects(Index) MatrixObjects(MatName)
Parameters
- Index
- matrix index
- MatName
- matrix name
Return
the MatrixObjects
Examples
EX1
import PyOrigin msheet = PyOrigin.ActiveLayer() msheet.SetNumMats(2) mats = msheet.MatrixObjects
EX2
#create matrixbook named MBook1 with sheet named Msheet1, then run the script import PyOrigin pArr2D = [[3 for x in range(5)] for x in range(5)] MatrixPage=PyOrigin.MatrixPages('MBook1') MatrixPage.Layers('MSheet1').MatrixObjects(0).SetData(pArr2D, 0, 0)