Create a New Plot Macro
- 
                From the Plot Macros panel,
                    click Add.
                The Edit Plot Macro dialog is displayed.
- Click the Parameters tab.
- Click Add.
- Enter a parameter name in the Parameter text box.
- Enter a variable name for the parameter in the Varname text box.
- For Type, select Curve or Scalar.
- Click the Curve tab.
- 
                Double-click on a parameter in the Parameters list.
                The variable name for the parameter is displayed in the Label text box.
- For complex macros, activate the format for the data returned from the Y math expression by clicking the Real/Imaginary or Phase/Magnitude radio buttons.
- Enter math expressions for the X and Y coordinates.
- For parameters of type "curve", curve vectors can be referenced in the math expression. When referencing vectors from linear curves, use parameter_name.x and parameter_name.y for x and y vectors, respectively.
- 
                When referencing vectors from complex curves, use the following naming
                    conventions:
                - Vector Type
- Naming Convention
- X
- parameter_name.x
- Y
- parameter_name.y
- Y phase
- parameter_name.yp
- Y magnitude
- parameter_name.ym
- Y real
- parameter_name.yr
- Y imaginary
- parameter_name.yi
 
- Click Close.
- Enter the macro name in the Macro text box.
- If desired, rename the macro by highlighting the name from the list, entering a new name in the Macro field, and pressing Enter.
 .
. 
                        
                      .
 . 
                        
                      .
. 
                        
                      .
.