updated figure captions
This commit is contained in:
@@ -52,15 +52,15 @@ def plot_response_spectrum(ax, s, eodf, rate, freqs, prr):
|
||||
ax.show_spines('b')
|
||||
mask = (freqs > 30) & (freqs < 890)
|
||||
ax.plot(freqs[mask], power_db[mask], **s.lsC1)
|
||||
ax.plot(freqs[eod_i], power_db[eod_i], **s.psFEOD)
|
||||
ax.plot(freqs[rate_i], power_db[rate_i], **s.psF0)
|
||||
ax.plot(freqs[eod_i], power_db[eod_i] + 2, **s.psFEOD)
|
||||
ax.plot(freqs[rate_i], power_db[rate_i] + 2, **s.psF0)
|
||||
ax.set_xlim(0, 900)
|
||||
ax.set_ylim(-25, 5)
|
||||
ax.set_xticks_delta(300)
|
||||
ax.set_xlabel('$f$', 'Hz')
|
||||
ax.text(freqs[eod_i], power_db[eod_i] + 2, '$f_{\\rm EOD}$',
|
||||
ax.text(freqs[eod_i], power_db[eod_i] + 4, '$f_{\\rm EOD}$',
|
||||
ha='center')
|
||||
ax.text(freqs[rate_i], power_db[rate_i] + 2, '$r$',
|
||||
ax.text(freqs[rate_i], power_db[rate_i] + 4, '$r$',
|
||||
ha='center')
|
||||
ax.yscalebar(1.05, 0, 10, 'dB', ha='right')
|
||||
|
||||
@@ -131,7 +131,7 @@ def plot_diagonals(ax, s, fbase, contrast1, freqs1, chi21, contrast2, freqs2, ch
|
||||
nlips.append(nlip)
|
||||
nlifs.append(nlif)
|
||||
print(f' SI at {100*contrast:.1f}% contrast: {nli:.2f}')
|
||||
ax.axvline(fbase, **s.lsGrid)
|
||||
#ax.axvline(fbase, **s.lsGrid)
|
||||
ax.plot(diags[1][0], 1e-3*diags[1][1], **s.lsC2)
|
||||
ax.plot(diags[0][0], 1e-3*diags[0][1], **s.lsC1)
|
||||
ax.plot(nlifs[1], 1e-3*nlips[1], **s.psC2)
|
||||
@@ -148,7 +148,7 @@ def plot_diagonals(ax, s, fbase, contrast1, freqs1, chi21, contrast2, freqs2, ch
|
||||
ax.text(nlifs[0] - 25, 1e-3*nlips[0], f'{100*contrast1:.0f}\\%',
|
||||
ha='right')
|
||||
ax.text(nlifs[0] + 35, 1e-3*nlips[0], f'SI={nlis[0]:.1f}')
|
||||
ax.text(fbase, 1.75, '$r$', ha='center')
|
||||
#ax.text(fbase, 1.75, '$r$', ha='center')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
@@ -181,6 +181,9 @@ if __name__ == '__main__':
|
||||
*example_cell[0])
|
||||
fcutoff2, contrast2, freqs2, gain2, chi22 = load_spectra(data_path,
|
||||
*example_cell[1])
|
||||
print(f' contrast1: {100*contrast1:4.1f}% contrast2: {100*contrast2:4.1f}%')
|
||||
print(f' fcutoff1 : {fcutoff1:3.0f}Hz fcutoff2 : {fcutoff2:3.0f}Hz')
|
||||
print(f' duration1: {time1[-1]:4.1f}s duration2: {time2[-1]:4.1f}s')
|
||||
|
||||
s = plot_style()
|
||||
s.cell_color1 = s.ampul_color1
|
||||
|
||||
Reference in New Issue
Block a user