Lightcurve¶
- class gdt.core.plot.lightcurve.Lightcurve(data=None, background=None, canvas=None, ax=None, **kwargs)[source]¶
Bases:
GdtPlotClass for plotting lightcurves and lightcurve paraphernalia.
- Parameters:
Attributes Summary
The matplotlib axes object for the plot
The background plot element
The plotting canvas, if set upon initialization.
The error bars plot element
The matplotlib figure object
The lightcurve plot element
The list of selection plot elements
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
add_selection(data)Add a selection to the plot.
Remove the background from the plot.
Remove the lightcurve from the plot.
Remove the lightcurve error bars from the plot.
Remove the selections from the plot.
set_background(background)Set the background plotting data.
set_data(data)Set the lightcurve plotting data.
Attributes Documentation
- ax¶
The matplotlib axes object for the plot
- Type:
(
matplotlib.axes)
- background¶
The background plot element
- Type:
- canvas¶
The plotting canvas, if set upon initialization.
- Type:
(Canvas Backend object)
- errorbars¶
The error bars plot element
- Type:
- fig¶
The matplotlib figure object
- Type:
(
matplotlib.figure)
- selections¶
The list of selection plot elements
- Type:
(list of
HistoFilled)
- 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
- add_selection(data)[source]¶
Add a selection to the plot. This adds a new selection to a list of existing selections.
- Parameters:
data (
TimeBins) – The lightcurve data selection to plot