8.1.15.5 MatrixObject::SetXY
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
Set matrix object xy mapping coordinates
Syntax
SetXY(Values)
Parameters
- Values
- list of [x0, x1, y0, y1]
Return
False if x0 == x1 or y0 == y1, otherwise return True
Examples
EX1
import PyOrigin pArr2D = [[x for x in range(5)] for x in range(5)] MatrixPage=PyOrigin.MatrixPages('MBook1') MatrixPage.Layers('MSheet1').SetColCount(5) MatrixPage.Layers('MSheet1').SetRowCount(5) MO=MatrixPage.Layers('MSheet1').MatrixObjects(0) vXY=[0,1,0,1] MO.SetXY(vXY)