cleaned up for new data
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
from pathlib import Path
|
||||
from spectral import whitenoise, diag_projection, peakedness
|
||||
from spectral import whitenoise, diag_projection, peak_size
|
||||
from plotstyle import plot_style
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ def plot_chi2(ax, s, freqs, chi2, nsegs, rate):
|
||||
ax.text(1, 1.1, f'$N=10^{{{np.log10(nsegs):.0f}}}$',
|
||||
ha='right', transform=ax.transAxes)
|
||||
dfreqs, diag = diag_projection(freqs, chi2, 2*fcutoff)
|
||||
nli, nlif = peakedness(dfreqs, diag, rate, median=False)
|
||||
nli, nlirel, nlif = peak_size(dfreqs, diag, rate, median=False)
|
||||
ax.text(0.95, 0.88, f'SI($r$)={nli:.1f}', ha='right', zorder=50,
|
||||
color='white', fontsize='medium', transform=ax.transAxes)
|
||||
cax = ax.inset_axes([1.04, 0, 0.05, 1])
|
||||
|
||||
Reference in New Issue
Block a user