flaredetector: add function to plot fits to an axis
This commit is contained in:
@@ -42,6 +42,10 @@ def plotFlarePeaks(ax, peaks):
|
|||||||
for peak in peaks:
|
for peak in peaks:
|
||||||
ax.plot(peak["FlarePeakTime"], peak["FlarePeak"], "x", color="red")
|
ax.plot(peak["FlarePeakTime"], peak["FlarePeak"], "x", color="red")
|
||||||
|
|
||||||
|
def plotFlareFits(ax, fits):
|
||||||
|
for fit in fits:
|
||||||
|
ax.plot(fit["FlareFitTime"], fit["FlareFit"], "g--")
|
||||||
|
|
||||||
def getFlareRange(flux, peakIndex):
|
def getFlareRange(flux, peakIndex):
|
||||||
minInd = -np.inf
|
minInd = -np.inf
|
||||||
maxInd = np.inf
|
maxInd = np.inf
|
||||||
|
|||||||
Reference in New Issue
Block a user