hswfs.plotting

This module provides functions related to plotting.

hswfs.plotting.disable_ticks(ax: Any) None[source]

Disable the ticks and labels on the given matplotlib ax. This is similar to calling ax.axis(‘off’), except that the frame around the plot is preserved.

Parameters

ax – A matplotlib axis.

hswfs.plotting.plot_shifts(ax: Any, relative_shifts: ndarray) None[source]

Create a plot of a wavefront sensor (with the relative_shifts for each subaperture) on the provided ax.

Parameters
  • ax – A matplotlib axis.

  • relative_shifts – A numpy array of shape (N, N, 2), where N is the grid size, containing the relative shift (or offset) for each subaperture.