LightcurveBackground

class gdt.core.plot.plot.LightcurveBackground(backrates, ax, color=None, alpha=None, band_alpha=None, **kwargs)[source]

Bases: PlotElement

Plot 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 plot

  • color (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

alpha

The alpha opacity value

artists

The object references to the individual matplotlib elements

band_alpha

The opacity of the uncertainty band

color

The color of the plot element

linestyle

The linestyle of the background Default is '-'

linewidth

The line width of the background.

visible

True if the element is shown on the plot, False otherwise

zorder

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