ess.amor.figures.wavelength_z_figure#

ess.amor.figures.wavelength_z_figure(da, *, wavelength_bins=None, **kwargs)[source]#

Creates a figure displaying a histogram over the detector “Z”-direction, corresponding to the combination of the logical detector coordinates blade and wire.

The input can either be a single data array containing the data to display, or a sequence of data arrays.

The inputs must either have coordinates called “blade” and “wire” and “wavelength”, or they must be histograms with dimensions “blade”, “wire” and “wavelength”.

If wavelength_bins is provided, it is used to construct the histogram. If not provided, the function uses the bin edges that already exist on the data arrays.

Parameters:
  • da (array or sequence of arrays) – Data arrays to display.

  • wavelength_bins (array-like, optional) – Bins used to histogram the data in wavelength.

Returns:

A Plopp figure displaying the histogram.