ResponsePlot

class gdt.core.plot.drm.ResponsePlot(drm=None, colorbar=True, multi=False, canvas=None, ax=None, num_contours=100, **kwargs)[source]

Bases: GdtPlot

Class for plotting a response matrix.

Parameters:
  • drm (ResponseMatrix, optional) – The response object

  • colorbar (bool, optional) – If True, plot the colorbar for the effective area scale. Default is True.

  • ax (matplotlib.axes, optional) – An existing axes object to plot to. If not set, will create a new axes object.

  • multi (bool, optional) – If True, plots a multiplot window showing the matrix and the integrated effective area as a function of incident energy and recorded energy.

  • num_contours (int, optional) – Number of contours to plot. Default is 100

  • **kwargs – Options to pass to GdtPlot

Attributes Summary

ax

The matplotlib axes object for the plot

canvas

The plotting canvas, if set upon initialization.

drm

The matrix plot object

fig

The matplotlib figure object

xlim

The plotting range of the x axis

xscale

The scale of the x axis, either 'linear' or 'log'.

ylim

The plotting range of the y axis.

yscale

The scale of the y axis, either 'linear' or 'log'.

Methods Summary

set_response(drm, **kwargs)

Set the response data.

Attributes Documentation

ax

The matplotlib axes object for the plot

Type:

(matplotlib.axes)

canvas

The plotting canvas, if set upon initialization.

Type:

(Canvas Backend object)

drm

The matrix plot object

Type:

(Heatmap)

fig

The matplotlib figure object

Type:

(matplotlib.figure)

xlim

The plotting range of the x axis

Type:

(float, float)

xscale

The scale of the x axis, either ‘linear’ or ‘log’.

Type:

(str)

ylim

The plotting range of the y axis.

Type:

(float, float)

yscale

The scale of the y axis, either ‘linear’ or ‘log’.

Type:

(str)

Methods Documentation

set_response(drm, **kwargs)[source]

Set the response data.

Parameters: