tidy3d.Simulation.viz_source_spectrum

Simulation.viz_source_spectrum(source, ax=None, Nfreqs=1000, flims=None)

Plot the frequency dependence of a source.

Parameters
  • source (Source) – Source object to plot.

  • ax (Matplotlib axis object, optional) – If None, a new figure is created.

  • Nfreqs (int) – Number of frequencies to interpolate the spectrum over.

  • flims (List[float], optional) – Frequency limits (fmin, fmax) to plot within.

Returns

Return type

Matplotlib axis object