GraphObject::GetWidth

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

Syntax

GetWidth()

Parameters

Return

The graph object width

Examples

EX1

import PyOrigin
#active a graphs with legend
Graph=PyOrigin.ActiveLayer()
#get the width of the legend
print('The widthof the legend is: ') 
print(Graph.GraphObjects('legend').GetWidth())

See Also

GraphObject::SetWidth