8.1.11.18 GraphObject::SetLeft

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 left of the object in physical coordinates.

Syntax

void SetLeft(int nLeft);

Parameters

int nLeft

Left of the object in physical coordinates

Return

Examples

EX1

import PyOrigin
#active a graphs with legend
Graph=PyOrigin.ActiveLayer()
#Set the left margin of the object
Graph.GraphObjects('Legend').SetLeft(2000)
print('Now the left margin of the object of the object is: %i' % Graph.GraphObjects('Legend').GetLeft())

See Also

GetLeft