spectrum_background¶
- gdt.core.plot.lib.spectrum_background(backspec, ax, cent_color=None, err_color=None, cent_alpha=None, err_alpha=None, **kwargs)[source]¶
Plot a count spectrum background model with an error band.
- :param backspec (
BackgroundSpectrumor:BackgroundChannelSpectrum): The background rates object integrated over energy. If there is more than one remaining energy channel, the background will be integrated over the remaining energy channels.
- Parameters:
ax (
matplotlib.axes) – The axis on which to plotcent_color (str) – Color of the centroid line
err_color (str) – Color of the errorband
cent_alpha (float) – Alpha of the centroid line
err_alpha (fl) – Alpha of the errorband
**kwargs – Other plotting options
- Returns:
(list of matplotlib.lines.Line2D and matplotlib.collections.PolyCollection)
- :param backspec (