median_image

vetpack.median_image(tpf, ax=None)

Plot the median image from a target pixel file.

Parameters:
tpf : ~lightkurve.TargetPixelFile

A target pixel file object.

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 image plotted.