Create a New Plot Macro

  1. From the Plot Macros panel, click Add.
    The Edit Plot Macro dialog is displayed.
  2. Click the Parameters tab.
  3. Click Add.
  4. Enter a parameter name in the Parameter text box.
  5. Enter a variable name for the parameter in the Varname text box.
  6. For Type, select Curve or Scalar.
  7. Click the Curve tab.
  8. Double-click on a parameter in the Parameters list.
    The variable name for the parameter is displayed in the Label text box.
  9. 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.
  10. Enter math expressions for the X and Y coordinates.
  11. 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.
  12. When referencing vectors from complex curves, use the following naming conventions:
    Vector Type
    Naming Convention
    Y phase
    Y magnitude
    Y real
    Y imaginary
  13. Click Close.
  14. Enter the macro name in the Macro text box.
  15. If desired, rename the macro by highlighting the name from the list, entering a new name in the Macro field, and pressing Enter.