8.1.11.19 GraphObject::SetText

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 text for graph object.

Syntax

SetText(Text)

Parameters

Text

text content for the graph object (i.e. Legend, Text object).

Return

Examples

EX1

import PyOrigin
#active a graphs with legend
Graph=PyOrigin.ActiveLayer()
#Set the left margin of the object
Graph.GraphObjects('Legend').SetText('\l(1) Data_1')

See Also

GraphObject::GetText