grasp2alm.BeamGrid.plot

BeamGrid.plot(pol='co', color_resol=20, figsize=6, cmap='inferno', return_fields=False)[source]

Plot the beam pattern.

Parameters:
  • pol (str) – The polarization to plot. Must be either ‘co’ or ‘cx’.

  • color_resol (int) – The number of color levels in the plot.

  • figsize (int) – The size of the figure.

  • cmap (str) – The colormap to use for the plot.

  • return_fields (bool) – Whether to return the x, y, and z values.

Returns:

  • None (if return_fields is False (default).)

  • (ndarray,ndarray,ndarray) (if return_fields is True returns x,y,z values of the plot.)