finesse.analysis.actions.operator.EigenmodesSolution.plot_field¶
- EigenmodesSolution.plot_field(mode_idx, *, x=None, y=None, samples=100, scale=3, ax=None, colorbar=True, **kwargs)[source]¶
Plots a 2D optical field for one of the eigenmodes.
x and y dimensions can be specified if required, otherwise it will return an area of scale times the spot sizes. When x and y are provided scale and samples will not do anything.
- Parameters
- mode_idxint
index of the mode to plot
- x, yndarray, optional
Specify x and y coordinates to plot beam
- samplesint, optional
Number of sample points to use in x and y
- scalefloat, optional
Number of sample points to use in x and y
- axAxis, optional
A Matplotlib axis to put the image on. If None, a new figure will be made.
- colorbarbool
When True the colorbar will be added
- **kwargs
Extra keyword arguments will be passed to the pcolormesh plotting function.