8.1.11.15 GraphObject::SetDX

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 in axes units.

Syntax

SetDX(DX)

Parameters

DX

object dimension

Return

None

Examples

EX1

import PyOrigin
#active a graphs with legend
Graph=PyOrigin.ActiveLayer()
#get the demision of the legend
print(Graph.GraphObjects('legend').GetDX(),Graph.GraphObjects('legend').GetDY())
Graph.GraphObjects('legend').SetDX(5)

See Also

GraphObject::GetDX