8.1.11 GraphObject

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.


Name

GraphObject

Remark

The GraphObject class provides methods and properties common to all Origin graph objects.

Origin graph objects include such things as text annotations, graphic annotations (e.g. rectangles, arrows, line objects, etc.), data plot style holders, and region of interest objects.

Hierarchy

Property

Name Brief Example
DX Get/Set the graph object width in axes units. Examples
DY Get/Set the graph object height in axes units. Examples
Height Get/Set the graph object Height (pixel) Examples
Left Get/Set left of the object in physical coordinates. Examples
Text Get/Set the text for graph object. Examples
Top Get/Set top of the object in physical coordinates. Examples
Width Get/Set the graph object Width (pixel) Examples
X Get/Set the axis X coordinate of the center of the object. Examples
Y Get/Set the axis Y coordinate of the center of the object. Examples

Members

Name Brief Example
GetDX Get the graph object width in axes units. Examples
GetDY Get the graph object height in axes units. Examples
GetHeight Get the graph object Height (pixel) Examples
GetLeft Left of the object in physical coordinates. Examples
GetObjectType Get the graph object type Examples
GetText Get the text for graph object. Examples
GetTop Top of the object in physical coordinates. Examples
GetWidth Get the graph object width (pixel) Examples
GetX Get axis X coordinate of the center of the object. Examples
GetY Get axis Y coordinate of the center of the object. Examples
SetDX Set the graph object width in axes units. Examples
SetDY Set the graph object height in axes units. Examples
SetHeight Set the graph object Height (pixel) Examples
SetLeft Set left of the object in physical coordinates. Examples
SetText Set the text for graph object. Examples
SetTop Set top of the object in physical coordinates. Examples
SetWidth Set the graph object Width (pixel) Examples
SetX Set axis X coordinate of the center of the object. Examples
SetY Set axis Y coordinate of the center of the object. Examples


OriginObject Members

Name Brief Example
Destroy Destroy the Origin object Examples
DoMethod Execute object LabTalk methods Examples
GetBinaryStorage Get a binary storage as a tree
GetComments Retrieve the comments from an object that supports Comments Examples
GetIndex Get the index of an object in a Collection Examples
GetLongName Get the long name of an object Examples
GetName Get the short name of an object Examples
GetNumProp Get object property via LabTalk property name Examples
GetShow Get the show status of an object Examples
GetStorageNames Get names of storage class objects
GetStrProp Get object property via LabTalk property name Examples
GetTheme Get the theme as treenode Examples
LT_execute Execute the Labtalk script code. Examples
SetComments Sets the comments with a text string to an object that supports Comments Examples
SetIndex Set the index of an object in a Collection Examples
SetLongName Set the long name of an object Examples
SetName Set the short name of an object Examples
SetNumProp Set object property via LabTalk property name Examples
SetShow Set the show status of an object Examples
SetStrProp Set object property via LabTalk property name Examples
SetTheme Set the theme as treenode


OriginBase Members

Name Brief Example
IsValid Check whether the instance is valid Examples