LightcurveBackground¶
- class gdt.core.plot.plot.LightcurveBackground(backrates, ax, color=None, alpha=None, band_alpha=None, **kwargs)[source]¶
Bases:
PlotElementPlot a lightcurve background model with an error band.
- Parameters:
backrates (
BackgroundRates) – 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.ax (
matplotlib.axes) – The axis on which to plotcolor (str, optional) – The color of the background.
alpha (float, optional) – The alpha of the background central line.
band_alpha (float, optional) – The alpha of the background uncertainty.
**kwargs – Other plotting options
Attributes Summary
The alpha opacity value
The object references to the individual matplotlib elements
The opacity of the uncertainty band
The color of the plot element
The linestyle of the background Default is '-'
The line width of the background.
True if the element is shown on the plot, False otherwise
The plot element zorder
Methods Summary
hide()Hide the plot element
remove()Remove the plot element
show()Show the plot element
toggle()Toggle the visibility of the plot element
Attributes Documentation
- alpha¶
The alpha opacity value
- Type:
(float)
- artists¶
The object references to the individual matplotlib elements
- Type:
(list)
- band_alpha¶
The opacity of the uncertainty band
- Type:
(float)
- color¶
The color of the plot element
- Type:
(str)
- linestyle¶
The linestyle of the background Default is ‘-’
- Type:
(str)
- linewidth¶
The line width of the background. Default is 1.5
- Type:
(int)
- visible¶
True if the element is shown on the plot, False otherwise
- Type:
(bool)
- zorder¶
The plot element zorder
- Type:
(int)
Methods Documentation
- hide()¶
Hide the plot element
- remove()¶
Remove the plot element
- show()¶
Show the plot element
- toggle()¶
Toggle the visibility of the plot element