slmsuite.holography.toolbox.phase.zernike_pyramid_plot#
- zernike_pyramid_plot(grid, order, scale=1, titles=['ansi', 'radial', 'latex', 'name'], cmap='twilight_shifted', noborder=False, **kwargs)[source]#
Plots
zernike()on a pyramid of subplots corresponding to the radial and azimuthal order. The user can resize the figure withplt.figure()beforehand and forceplt.show()afterward.- Parameters:
grid ((array_like, array_like) OR
SLM) – Meshgrids of normalized \(\frac{x}{\lambda}\) coordinates corresponding to SLM pixels, in(x_grid, y_grid)form. These are precalculated and stored in anySLM, so such a class can be passed instead of the grids directly.order (int) – Maximum radial order to plot.
scale (float) – Scales the subplots to
[-scale, scale].titles (list of str) –
Which titles to plot. Options:
"ansi"the ANSI singleton index,"radial"the radial index pair,"latex"the cartesian representation of the polynomial,"name"the name of the aberration produced by the polynomial.
cmap (str) – Colormap to use in plotting.
noborder (bool) – If
Truedoes not plot the axis border and removes color from clipped areas.**kwargs – Passed to
zernike().