ResponsePlot¶
- class gdt.core.plot.drm.ResponsePlot(drm=None, colorbar=True, multi=False, canvas=None, ax=None, num_contours=100, **kwargs)[source]¶
Bases:
GdtPlotClass for plotting a response matrix.
- Parameters:
drm (
ResponseMatrix, optional) – The response objectcolorbar (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
The matplotlib axes object for the plot
The plotting canvas, if set upon initialization.
The matrix plot object
The matplotlib figure object
The plotting range of the x axis
The scale of the x axis, either 'linear' or 'log'.
The plotting range of the y axis.
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)
- 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:
drm (
ResponseMatrix) – The response object**kwargs – Arguments to pass to
Heatmap