HyperWorks Desktop

*DefinePlotMacro()

Begins a plot macro definition block.

*DefinePlotMacro()

Begins a plot macro definition block.

Previous topic Next topic No expanding text in this topic  

*DefinePlotMacro()

Begins a plot macro definition block.

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Syntax

*DefinePlotMacro(macro_name, [arg_1, arg_2, ..., arg_n])

Arguments

Name

Description

 

macro_name

The name of the plot macro.

 

arg_1, ...

User-defined optional arguments.

Example

*BeginPlotMacros()

  *DefinePlotMacro(macro_batch, curve, low, high, times )

     *Label( "batch general")

     *Parameter(curve, "Curve (time = sec)", CURVE)

     *Parameter(low, "Low cutoff", SCALAR)

     *Parameter(high, "High cutoff", SCALAR)

     *Parameter(times, "Time conv.", SCALAR, 1.0)

     *Set(X, "curve.x")

     *Set(Y, "batch(times*curve.x,curve.y,low,high)")

     *Set(LABEL, curve.label + "_" + low + "_" + high)

  *EndDefine()

*EndPlotMacros()

Application

HyperGraph.

Context

*BeginPlotMacros()

Comments

Every *DefinePlotMacros() statement requires a closing *EndDefine() statement.

*Parameter() can also be used in a *DefineReport() block.

*Label() performs the same function as *ReportLabel() in a *DefineReport() block.

See also

 

*BeginPlotMacros()

*Label() – axis and plot macro

*Parameter()

List of Session Statements