Flux vs Phase#
Display flux as a function of orbital phase for phase-folded light curves.
Overview#
The Flux vs Phase viewer (registry name lcviz-phase-viewer) displays flux against
orbital phase computed from the ephemeris defined in the
Ephemeris plugin. One phase viewer is created automatically
for each ephemeris component added.
The x-axis spans [-0.5, 0.5] in phase units by default, and the viewer stays synchronized with the time viewer through the shared ephemeris.
UI Access#
API Access#
import jdaviz as jd
import lcviz
from lightkurve import search_lightcurve
lc = search_lightcurve("HAT-P-11", mission="Kepler",
cadence="long", quarter=10).download().flatten()
jd.load(lc, format="Light Curve")
jd.show()
# Set ephemeris to create a phase viewer
ephem = jd.plugins['Ephemeris']
ephem.period = 4.88780258
ephem.t0 = 2.43
# Access the phase viewer
pv = jd.viewers['flux-vs-phase:default[1]']
See also
PhaseScatterViewAPI documentation for the Flux vs Phase viewer.
- Ephemeris
The Ephemeris plugin for defining phase-folding parameters.