ess.isissans.visualization.plot_flat_detector_xy#

ess.isissans.visualization.plot_flat_detector_xy(da, pixels_per_tube=512, **kwargs)[source]#

Plot a 2-D view of data from a single flat detector bank.

This is an alternative to the scn.instrument_view function, avoiding the 3-D rendering of the instrument. The exact X and Y coordinates of the pixels are used for the 2-D plot.

There are currently no checks that the data array is actually from a single detector bank, or that it is flat. The caller is responsible for ensuring this.

Parameters:
  • da (DataArray) – The data array to plot. Must have a ‘position’ coord and a single dimension.

  • pixels_per_tube (int, default: 512) – The number of pixels per tube. Defaults to 512.

  • kwargs (Any) – Additional arguments passed to sc.plot.

Return type:

Any