plot_periodogram¶
-
gammapy.time.plot_periodogram(time, flux, periods, power, flux_err=None, best_period=None, fap=None)[source]¶ Plot a light curve and its periodogram.
The highest period of the periodogram and its false alarm probability (FAP) is added to the plot, if given.
Parameters: time :
numpy.ndarrayTime array of the light curve
flux :
numpy.ndarrayFlux array of the light curve
periods :
numpy.ndarrayPeriods for the periodogram
power :
numpy.ndarrayPeriodogram peaks of the data
flux_err :
numpy.ndarray(optional, default=None)Flux error array of the light curve. Is set to 0 if not given.
best_period : float (optional, default=None)
Period of the highest periodogram peak
fap : float (optional, default=None)
False alarm probability of
best_periodunder a certain significance criterion.Returns: fig :
FigureMatplotlib figure