cngi.image.implot

implot(xda, axis=['l', 'm'], chans=None, pols=None, overplot=False, drawplot=True, tsize=250, title=None)[source]

Plot a preview of Image xarray DataArray contents

Parameters
  • xda (xarray.core.dataarray.DataArray) – input DataArray

  • axis (str or list) – DataArray coordinate(s) to plot against data. Default [‘d0’, ‘d1’]. All other coordinates will be averaged

  • chans (int or list of ints) – channel axis indices to select prior to averaging

  • pols (int or list of ints) – polarization axis indices to select prior to averaging

  • overplot (bool) – Overlay new plot on to existing window. Default of False makes a new window for each plot

  • drawplot (bool) – Display plot window. Should pretty much always be True unless you want to overlay things in a Jupyter notebook.

  • tsize (int) – target size of the preview plot (might be smaller). Default is 250 points per axis

Returns

Return type

Open matplotlib window