gplugins.common.utils.plot.plot_imbalance2x2#
- gplugins.common.utils.plot.plot_imbalance2x2(sp: dict[str, np.ndarray], *, ports: Sequence[str] = ['o1@0,o3@0', 'o1@0,o4@0'], ax: plt.Axes | None = None) None #
Plots imbalance in dB for coupler. The imbalance is always defined between two ports, so this function plots the imbalance between all unique port combinations.
- Parameters:
sp – sparameters dict np.ndarray.
ports – list of port name @ mode index. o1@0 is the fundamental mode for o1 port.
ax – matplotlib axis object to draw into.