8.1.11.22 GraphObject::SetX
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 axis X coordinate of the center of the object.
Syntax
SetX(X)
Parameters
- X
object coordinate on X direction
Return
Examples
EX1
import PyOrigin #active a graphs with legend Graph=PyOrigin.ActiveLayer() #Set the X corrdinate of the object Graph.GraphObjects('Legend').SetX(2) print('Now the X corrdinate of the object is: %2.1f' % Graph.GraphObjects('Legend').GetX())