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 :
ndarrayTime array of the light curve
flux :
ndarrayFlux array of the light curve
flux_err :
ndarrayFlux error array of the light curve
periods :
ndarrayPeriods for the periodogram
psd_data :
ndarrayPeriodogram peaks of the data
psd_win :
ndarrayPeriodogram peaks of the window function
best_period : float
Highest period of the periodogram
fap : float or
ndarrayFalse alarm probability of
best_periodunder the specified significance criterion. If the significance criterion is not defined, the maximum false alarm probability of all significance criteria is used.Returns: fig :
FigureMatplotlib figure