8.1.11.23 GraphObject::SetY

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 Y coordinate of the center of the object.

Syntax

SetY(Y)

Parameters

Y
object coordinate on Y direction

Return

Examples

EX1

import PyOrigin
#active a graphs with legend
Graph=PyOrigin.ActiveLayer()
#Set the Y corrdinate of the object
Graph.GraphObjects('Legend').SetY(2)
print('Now the Y corrdinate of the object is: %2.1f' % Graph.GraphObjects('Legend').GetY())

See Also

GraphObject::GetY