gplugins.common.utils.plot.plot_sparameters

gplugins.common.utils.plot.plot_sparameters#

gplugins.common.utils.plot.plot_sparameters(sp: dict[str, ndarray], logscale: bool = True, plot_phase: bool = False, keys: tuple[str, ...] | None = None, with_simpler_input_keys: bool = False, with_simpler_labels: bool = True, units: float = 1000.0) None[source]#

Plots Sparameters from a dict of np.ndarrays.

Parameters:
  • sp – Sparameters np.ndarray.

  • logscale – plots 20*log10(S).

  • plot_phase – plots angle of Sparameters in degrees.

  • keys – list of keys to plot, plots all by default.

  • with_simpler_input_keys – You can use S12 keys instead of o1@0,o2@0.

  • with_simpler_labels – uses S11, S12 in plot labels instead of o1@0,o2@0.

  • units – wavelength units. Default is 1e3 to convert um to nm.