difference_image

vetpack.difference_image(tpf, t0, period, duration, ax=None)

Plot the median in/out transit difference image from a target pixel file.

Parameters:
tpf : ~lightkurve.TargetPixelFile

A target pixel file object.

t0 : float

The central transit time.

period : float

The orbital period.

duration : float

The duration of the transit.

ax : ~matplotlib.axes.Axes or None, optional.

The ~matplotlib.axes.Axes object to be drawn on. If None, creates a new Figure and Axes.

Returns:
ax : ~matplotlib.axes.Axes

An Axes object with the median difference image plotted.