flaredetector: add function to plot fit peaks to an axis
This commit is contained in:
@@ -38,6 +38,10 @@ def calculateFlareFitsForLightcurve(lightcurve, num=100, distance=1, height=0.05
|
||||
|
||||
return peaks, fits
|
||||
|
||||
def plotFlarePeaks(ax, peaks):
|
||||
for peak in peaks:
|
||||
ax.plot(peak["FlarePeakTime"], peak["FlarePeak"], "x", color="red")
|
||||
|
||||
def getFlareRange(flux, peakIndex):
|
||||
minInd = -np.inf
|
||||
maxInd = np.inf
|
||||
|
||||
Reference in New Issue
Block a user