Network.plot_probe

rfnetwork.network.Network.plot_probe

Network.plot_probe(*paths, input_port=1, frequency=None, fmt='db', axes=None, tune=False, freq_unit='ghz', lines=None, **kwargs)

Plots s-matrix or noise figure data over frequency

Return type:

List[Line2D]

Parameters

*pathstuple | int

Probe paths to plot. Each path must be a 2-tuple of probe name or network ports. Valid probe names of the network can be found by calling evaluate and looking at the coords of the “b” dimension. The voltage wave leaving the first probe is referenced to the wave leaving the second probe (or network port). For example, ("ms2|1", "c2|2") would plot the ratio of the voltage wave leaving port 1 of ms2 to the voltage wave leaving port 2 of c2.

input_portint, default: 1

Sets which network ports is excited for all paths. Probes measure a different voltage wave depending on which port of the network is excited with a signal.

frequencynp.ndarray, optional

frequencies [Hz] to plot data over. If not provided, attempts to find a default frequency vector that minimizes extrapolation of component data.

fmtstr, default: “db”

data format for y-axis data. Accepts the following values - “mag”: Magnitude - “db” : 20log of magnitude - “ang” : Phase angle - “ang_unwrap”: Unwrapped phase angle - “vswr” : Voltage standing wave ratio - “real” : Real part of the complex s-matrix data - “imag” : Imaginary part of the complex s-matrix data - “realz” : Real part of the port input impedance - “imagz” : Imaginary part of the port input impedance - “nf” : Noise figure

axesmatplotlib.Axes, optional

Axes object to plot data on. If not provided, an axes is created with the default figure size.

tunebool, optional

If true, adds the plot as a tuning plot.

freq_unit{“Hz”, “kHz”, “MHz”, “GHz”}, default: “GHz”

Unit for frequency axis.

lineslist[Line2D], optional

Line2D objects for each path. If provided, updates the existing lines instead of drawing new ones on the plot.

**kwargs

parameters passed into matplotlib.axes.plot().

Returns

lineslist[Line2D]

list of line objects that were created for each path. If lines parameter was used, returned lines are the same as the lines parameter.