plot_periodogram

gammapy.time.plot_periodogram(time, flux, flux_err, periods, psd_data, psd_win, best_period=None, fap=None)[source]

Plot a light curve, its periodogram and spectral window function.

The highest period of the periodogram and its significance will be added to the plot, if given. If multiple significances are forwarded, the lowest one will be used.

Parameters:

time : ndarray

Time array of the light curve

flux : ndarray

Flux array of the light curve

flux_err : ndarray

Flux error array of the light curve

periods : ndarray

Periods for the periodogram

psd_data : ndarray

Periodogram peaks of the data

psd_win : ndarray

Periodogram peaks of the window function

best_period : float

Highest period of the periodogram

fap : float or ndarray

False alarm probability of best_period under the specified significance criterion. If the significance criterion is not defined, the maximum false alarm probability of all significance criteria is used.

Returns:

fig : Figure

Matplotlib figure