Layer::GraphObjects

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

Read-only property. Return the graph objects collection.


Get the graph object in graph layer

Syntax

GraphObjects


GraphObjects(Index)
GraphObjects(Val)

Parameters

  1. NULL
  2. Index
  3. Val

Return

GraphObject

Examples

EX1

import PyOrigin
gl=PyOrigin.ActiveLayer()
print(gl.GraphObjects.GetCount())

EX2

import PyOrigin
#active a graphs with legend
Graph=PyOrigin.ActiveLayer()
#get the demision of the legend
print(Graph.GraphObjects('legend').GetHeight(),Graph.GraphObjects('legend').GetWidth())