response_matrix

gdt.core.plot.lib.response_matrix(phot_energies, chan_energies, matrix, ax, cmap='Greens', num_contours=100, norm=None, **kwargs)[source]

Make a filled contour plot of a response matrix.

Parameters:
  • phot_energies (np.array) – The incident photon energy bin centroids

  • chan_energies (np.array) – The recorded energy channel centroids

  • matrix (np.array) – The effective area matrix corresponding to the photon bin and energy channels

  • ax (matplotlib.axes) – The axis on which to plot

  • cmap (str, optional) – The color map to use. Default is ‘Greens’

  • num_contours (int, optional) – The number of contours to draw. These will be equally spaced in log-space. Default is 100

  • norm (matplotlib.colors.Normalize or similar, optional) – The normalization used to scale the colormapping to the heatmap values. This can be initialized by Normalize, LogNorm, SymLogNorm, PowerNorm, or some custom normalization.

  • **kwargs – Other keyword arguments to be passed to matplotlib.pyplot.contourf

Returns:

(matplotlib.collections.QuadMesh)