GraphObject::SetWidth

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 the graph object Width (pixel)

Syntax

SetWidth(Width)

Parameters

Width

Graph object width (pixel) 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').SetWidth(1000)
print('Now the object width is : %d' % Graph.GraphObjects('Legend').GetWidth())

See Also

GraphObject::GetWidth