pulIMacro SetExpression

Sets the specified expression to be the given expression for the current macro.

Syntax

pulIMacro SetExpression name, expression

Application

Tcl Modify

Description

Sets the specified expression to be the given expression for the current macro.

Inputs

name
expression
This command sets the expression specified by name to be expression. Acceptable values for name are “x”, “y”, and “y2”, with “y2” referring to the secondary Y expression of a complex curve.

Example

hwi GetSessionHandle sess
sess GetClientManagerHandle pm plot
pm GetMacroHandle macro 1
macro SetExpression x "sin(x)"

Errors

Returns 3 if there is an invalid macro handle.

Returns 4 if the expression does not exist.

Keywords

Macro

Tcl