GraphObject::GetX

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

Get axis X coordinate of the center of the object.

Syntax

GetX()

Parameters

Return

The axis X coordinate of the center of the object.

Examples

EX1

import PyOrigin
#active a graphs with legend
Graph=PyOrigin.ActiveLayer()
#The X corrdinate of the object
print('The X corrdinate of the object is:')
print(Graph.GraphObjects('Legend').GetX())

See Also

GraphObject::SetX