lightkurve.KeplerTargetPixelFile.plot

KeplerTargetPixelFile.plot(ax=None, frame=0, cadenceno=None, bkg=False, column='FLUX', aperture_mask=None, show_colorbar=True, mask_color='red', title=None, style='lightkurve', **kwargs)

Plot the pixel data for a single frame (i.e. at a single time).

The time can be specified by frame index number (frame=0 will show the first frame) or absolute cadence number (cadenceno).

Parameters
axAxes

A matplotlib axes object to plot into. If no axes is provided, a new one will be generated.

frameint

Frame number. The default is 0, i.e. the first frame.

cadencenoint, optional

Alternatively, a cadence number can be provided. This argument has priority over frame number.

bkgbool

If True and column="FLUX", background will be added to the pixel values.

columnstr

Choose the FITS data column to be plotted. May be one of (‘FLUX’, ‘FLUX_ERR’,’FLUX_BKG’,’FLUX_BKG_ERR’,’COSMIC_RAYS’,’RAW_CNTS’).

aperture_maskndarray or str

Highlight pixels selected by aperture_mask.

show_colorbarbool

Whether or not to show the colorbar

mask_colorstr

Color to show the aperture mask

stylestr

Path or URL to a matplotlib style file, or name of one of matplotlib’s built-in stylesheets (e.g. ‘ggplot’). Lightkurve’s custom stylesheet is used by default.

kwargsdict

Keywords arguments passed to lightkurve.utils.plot_image.

Returns
axAxes

The matplotlib axes object.