*DefinePlotMacro()

Begins a plot macro definition block.

Syntax

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

Application

HyperGraph

Inputs

macro_name
The name of the plot macro.
arg_1, ...
User-defined optional arguments.

Context

*BeginPlotMacros()

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()

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.