.PLOT |

The PLOT command allows you to report the results of the analysis in the form of a diagram.

.PLOT <analysis type> [output variable]* [(<lower limit>, <upper limit>)] |

analysis type

Is the type of the analysis for which the specified outputs are desired. Must be DC, AC, TRAN, FOUR, NOISE, DISTO. Only one analysis type can be specified for each .PLOT command.

lower limit, upper limit

Sets the range of the y-axis.

output variable

Following the analysis type is a list of the output variables. You can specify individual vectors or complex expressions that have as their subject the vectors.

For the ac analysis, the voltages and currents can be represented as
magnitude, phase, real part, imaginary part, or decibels (20*log_{10}(magnitude)).

Output variables for the voltages:

Out Variable | Description |

V(node) VM(node) |
The voltage at the node specified relative to the ground node (GND or 0). |

V(node+,node-) VM(node+,node-) |
The voltage difference between nodes |

VR(node) | The real part of the voltage at the node specified relative to the ground node (GND or 0). |

VR(node+,node-) |
The real part of the voltage difference between nodes |

VI(node) | The imaginary part of the voltage at the node specified relative to the ground node (GND or 0). |

VI(node+,node-) |
The imaginary part of the voltage difference between
nodes |

VP(node) | The phase of the voltage at the node specified relative to the ground node (GND or 0). |

VP(node+,node-) |
The phase of the voltage difference between nodes |

VDB(node) | The magnitude in decibels of the voltage at the node specified relative to the ground node (GND or 0). |

VDB(node+,node-) |
The magnitude in decibels of the voltage difference
between nodes |

Output variables for the current flowing in the independent voltage source. Positive current flows from the positive node, through the source, to the negative node:

Out Variable | Description |

I(vsrc) IM(vsrc) |
The current flowing in the independent
voltage source
vsrc. |

IR(vsrc) | The real part of the current flowing in the
independent voltage source
vsrc. |

II(vsrc) | The imaginary part of the current flowing in
the independent voltage source
vsrc. |

IP(vsrc) | The phase of the current flowing in the
independent voltage source
vsrc. |

IDB(vsrc) | The magnitude in decibels of the current
flowing in the independent voltage source
vsrc. |

Output variable for any output vector.

Out Variable | Description |

vector MAG(vector) |
The magnitude of any vector resulting from the simulation. |

RE(vector) | The real part of any vector resulting from the simulation. |

IMAG(vector) | The imaginary part of any vector resulting from the simulation. |

PH(vector) | The phase of any vector resulting from the simulation. |

DB(vector) | The magnitude in decibels of any vector resulting from the simulation. |

Expressions:

Out Variable | Description |

(expression) |
Any expression on the output vectors.
Involving the node voltages, the current flowing in the
independent voltage sources, and the output parameters. The expressions must be enclosed in parentheses. |

Output parameters are those additional parameters which are available for many types of instances for the output of operating point and debugging information. These parameters are specified as "@device[keyword]" and must be explicitly saved using the .SAVE command.

The functions and operators that operate on vectors are different from those used in the expressions of the non-linear generators. See also Expressions with vectors.

You can specify up to 8 PLOT in total and a maximum of 4 PLOT for the same type of analysis, and each of them creates a different diagram.

The PRINT command takes effect only when the simulation is started from a text document. The simulations started from a graphic document ignore the commands PRINT and PLOT.

```
.PLOT AC VP(NET2) VDB(NET1, NET2)
.PLOT DC V(NET1) (V(NET2)*V(NET3))
.PLOT TRAN @r1[i] I(v1#branch) (-100mA, 100mA)
.PLOT NOISE INOISE ONOISE DB(INOISE) DB(ONOISE)
```