Plotter Module#

Plotting functions for wpt-tools.

wpt_tools.plotter.plot_efficiency(results: EfficiencyResults, rich_nw: RichNetwork)#

Plot the efficiency results.

Parameters:
Return type:

None

wpt_tools.plotter.plot_impedance(rich_nw: RichNetwork, results: LCRFittingResults | None = None, *, full_range: bool = False, target_f: float | None = None) tuple#

Unified impedance plotter.

  • For 1-port: plots Z11 real/imag. If results provided, overlays fit for imag(Z11).

  • For 2-port: plots 4 subplots for Z11, Z12, Z21, Z22 real/imag. If results provided, overlays fits for self and mutual reactances.

  • By default, plots within rich_nw narrow range; set full_range=True to plot full sweep.

wpt_tools.plotter.plot_load_sweep(results: OptimalLoadGridResults)#

Plot efficiency, input power and output power over a grid (model-driven).