FoldedLightCurve

The FoldedLightCurve class extends a standard LightCurve object by having the time column represent phase values. This allows a FoldedLightCurve to offer a few features that are specific to phase-folded time series data, namely the phase, odd_mask, and even_mask attributes. The class also overrides the plotting methods to provide defaults that are suitable for plotting phase-folded data.

Constructor

FoldedLightCurve([data, time, flux, flux_err])

Subclass of LightCurve in which the time parameter represents phase values.

Extra attributes

FoldedLightCurve.phase

Alias for LightCurve.time.

FoldedLightCurve.odd_mask

Boolean mask which flags the odd-numbered cycles (1, 3, 5, etc).

FoldedLightCurve.even_mask

Boolean mask which flags the even-numbered cycles (2, 4, 6, etc).

Modified plotting methods

FoldedLightCurve.plot(**kwargs)

Plot the folded light curve using matplotlib’s plot method.

FoldedLightCurve.scatter(**kwargs)

Plot the folded light curve using matplotlib’s scatter method.

FoldedLightCurve.errorbar(**kwargs)

Plot the folded light curve using matplotlib’s errorbar method.

FoldedLightCurve.plot_river(**kwargs)

Plot the folded light curve in a river style.