legume.viz.eps_ft

legume.viz.eps_ft(struct, Nx=100, Ny=100, cladding=False, cbar=True, cmap='Greys', gridspec=None, fig=None, figsize=None, xz=False, yz=False)

Plot a permittivity cross section computed from an inverse FT

The Fourier transform is computed with respect to the GME reciprocal lattice vectors.

Parameters:
  • struct (GuidedModeExp or PlaneWaveExp) –
  • Nx (int, optional) – Number of sample points to use in x-direction. Default is 100.
  • Ny (int, optional) – Number of sample points to use in y-direction. Default is 100.
  • cladding (bool, optional) – Whether or not the cladding should be plotted. Default is False.
  • cbar (bool, optional) – Whether or not a colorbar should be added to the plot. Default is False.
  • cmap (bool, optional) – Matplotlib colormap to use for plot Default is ‘Greys’.
  • gridspec (Matplotlib gridspec object, optional) – Gridspec to use for creating the plots. Default is None.
  • fig (Matplotlib figure object, optional) – Figure to use for creating the plots. Default is None.
  • figsize (int, float or tuple, optional) – Size of Matplotlib figure to create. Default is None, which sets the width to 4in and the height depending on the aspect ratios. If int or float, it’s taken as the figure width.