piel.visual.plot.signals.frequency.two_port#
Attributes#
Functions#
Plots input power (p_in_dbm) vs S21 gain (s_21_db) from a NetworkTransmission object. |
|
Plots S11 magnitudes vs input power (P_in_dBm) from a NetworkTransmission object on the same axes. |
|
Plots S21 and S11 magnitudes vs input power (P_in_dBm) from a NetworkTransmission object on the same axes. |
|
Plots S21 and S11 magnitudes vs input power (P_in_dBm) from a NetworkTransmission object on the same axes. |
Module Contents#
- logger#
- plot_s21_gain_per_input_power_dBm(network_transmission: piel.types.NetworkTransmission, fig: matplotlib.figure.Figure | None = None, axs: matplotlib.axes.Axes | None = None, label: str | None = None, xlabel: str = None, ylabel: str = None, **kwargs) tuple[matplotlib.figure.Figure, matplotlib.axes.Axes][source]#
Plots input power (p_in_dbm) vs S21 gain (s_21_db) from a NetworkTransmission object.
Parameters:#
- frequency_array_stateNetworkTransmission
The NetworkTransmission object containing the measurement data.
- figmatplotlib.figure.Figure, optional
The figure object to plot on. If None, a new figure is created.
- axsmatplotlib.axes.Axes, optional
The axes object to plot on. If None, a new set of axes is created.
- labelstr, optional
The label for the plot. If None, a default label is used.
Returns:#
: tuple
A tuple containing the matplotlib Figure and Axes objects.
- plot_s11_magnitude_per_input_frequency(network_transmission: piel.types.NetworkTransmission, fig: matplotlib.figure.Figure | None = None, axs: matplotlib.axes.Axes | None = None, label: str = None, xlabel: str | None = None, ylabel: str | None = None, **kwargs) Tuple[matplotlib.figure.Figure, matplotlib.axes.Axes][source]#
Plots S11 magnitudes vs input power (P_in_dBm) from a NetworkTransmission object on the same axes.
Parameters:#
- network_transmissionNetworkTransmission
The NetworkTransmission object containing the measurement data.
- figmatplotlib.figure.Figure, optional
The figure object to plot on. If None, a new figure is created.
- axsmatplotlib.axes.Axes, optional
The axes object to plot on. If None, a new set of axes is created.
- labelstuple of str, optional
A tuple containing labels for S21 and S11 plots. If None, defaults to (“S21 Gain”, “S11 Magnitude”).
- xlabelstr, optional
The label for the x-axis. If None, defaults to “P_in dBm”.
- ylabelstr, optional
The label for the y-axis. If None, defaults to “Magnitude (dB)”.
- **kwargs :
Additional keyword arguments passed to the plot function.
Returns:#
: tuple
A tuple containing the matplotlib Figure and Axes objects.
- plot_s21_magnitude_per_input_frequency(network_transmission: piel.types.NetworkTransmission, fig: matplotlib.figure.Figure | None = None, axs: matplotlib.axes.Axes | None = None, label: Tuple[str, str] | None = None, xlabel: str | None = None, ylabel: str | None = None, **kwargs) Tuple[matplotlib.figure.Figure, matplotlib.axes.Axes][source]#
Plots S21 and S11 magnitudes vs input power (P_in_dBm) from a NetworkTransmission object on the same axes.
Parameters:#
- network_transmissionNetworkTransmission
The NetworkTransmission object containing the measurement data.
- figmatplotlib.figure.Figure, optional
The figure object to plot on. If None, a new figure is created.
- axsmatplotlib.axes.Axes, optional
The axes object to plot on. If None, a new set of axes is created.
- labelstuple of str, optional
A tuple containing labels for S21 and S11 plots. If None, defaults to (“S21 Gain”, “S11 Magnitude”).
- xlabelstr, optional
The label for the x-axis. If None, defaults to “P_in dBm”.
- ylabelstr, optional
The label for the y-axis. If None, defaults to “Magnitude (dB)”.
- **kwargs :
Additional keyword arguments passed to the plot function.
Returns:#
: tuple
A tuple containing the matplotlib Figure and Axes objects.
- plot_s11_s21_magnitude_per_input_frequency(network_transmission: piel.types.NetworkTransmission, fig: matplotlib.figure.Figure | None = None, axs: matplotlib.axes.Axes | None = None, labels: Tuple[str, str] | None = None, xlabel: str | None = None, ylabel: str | None = None, **kwargs) Tuple[matplotlib.figure.Figure, matplotlib.axes.Axes][source]#
Plots S21 and S11 magnitudes vs input power (P_in_dBm) from a NetworkTransmission object on the same axes.
Parameters:#
- network_transmissionNetworkTransmission
The NetworkTransmission object containing the measurement data.
- figmatplotlib.figure.Figure, optional
The figure object to plot on. If None, a new figure is created.
- axsmatplotlib.axes.Axes, optional
The axes object to plot on. If None, a new set of axes is created.
- labelstuple of str, optional
A tuple containing labels for S21 and S11 plots. If None, defaults to (“S21 Gain”, “S11 Magnitude”).
- xlabelstr, optional
The label for the x-axis. If None, defaults to “P_in dBm”.
- ylabelstr, optional
The label for the y-axis. If None, defaults to “Magnitude (dB)”.
- **kwargs :
Additional keyword arguments passed to the plot function.
Returns:#
: tuple
A tuple containing the matplotlib Figure and Axes objects.