This commit is contained in:
xaver
2020-10-22 17:34:47 +02:00
parent b53890c7fc
commit 1797c75a6f
8 changed files with 533 additions and 54 deletions

View File

@@ -58,8 +58,8 @@ for ID in identifier:
eodf = fish_f[index]
eodf4 = eodf * 4
lim0 = eodf4 - 40
lim1 = eodf4 + 40
lim0 = eodf4 - 42
lim1 = eodf4 + 42
df = freqs[1] - freqs[0]
ix0 = int(np.floor(lim0 / df)) # back to index
@@ -102,36 +102,38 @@ for ID in identifier:
fig = plt.figure(figsize = (20,20))
ax0 = fig.add_subplot(221)
ax0.imshow(specs[0], cmap='jet', origin='lower', extent=(times[0], times[-1], sub_lim0[0], sub_lim1[0]), aspect='auto', vmin=-80, vmax=-10)
ax0.plot(sub_times[0], jars[0], 'k', label = 'peak detection trace', lw = 2)
#ax0.plot(sub_times[0], jars[0], 'k', label = 'peak detection trace', lw = 2)
ax0.set_xlim(times[0],times[-1])
ax0.set_ylabel('frequency [Hz]')
ax0.axes.xaxis.set_ticklabels([])
ax0.set_title('∆F -2 Hz')
ax1 = fig.add_subplot(222)
ax1.imshow(specs[1], cmap='jet', origin='lower', extent=(times[0], times[-1], sub_lim0[1], sub_lim1[1]), aspect='auto', vmin=-80, vmax=-10)
ax1.plot(sub_times[1], jars[1], 'k', label = 'peak detection trace', lw = 2)
ax1.imshow(specs[2], cmap='jet', origin='lower', extent=(times[0], times[-1], sub_lim0[2], sub_lim1[2]), aspect='auto', vmin=-80, vmax=-10)
#ax1.plot(sub_times[2], jars[2], 'k', label = 'peak detection trace', lw = 2)
ax1.set_xlim(times[0],times[-1])
ax1.axes.xaxis.set_ticklabels([])
ax1.axes.yaxis.set_ticklabels([])
ax1.set_title('∆F -10 Hz')
#ax1.axes.yaxis.set_ticklabels([])
ax1.set_title('∆F 2 Hz')
ax1.get_shared_y_axes().join(ax0, ax1)
ax2 = fig.add_subplot(223)
ax2.imshow(specs[2], cmap='jet', origin='lower', extent=(times[0], times[-1], sub_lim0[2], sub_lim1[2]), aspect='auto', vmin=-80, vmax=-10)
ax2.plot(sub_times[2], jars[2], 'k', label = 'peak detection trace', lw = 2)
ax2.imshow(specs[1], cmap='jet', origin='lower', extent=(times[0], times[-1], sub_lim0[1], sub_lim1[1]), aspect='auto', vmin=-80, vmax=-10)
#ax2.plot(sub_times[1], jars[1], 'k', label = 'peak detection trace', lw = 2)
ax2.set_xlim(times[0],times[-1])
ax2.set_ylabel('frequency [Hz]')
ax2.set_xlabel('time [s]')
ax2.set_title('∆F 2 Hz')
ax2.set_title('∆F -10 Hz')
ax3 = fig.add_subplot(224)
ax3.imshow(specs[3], cmap='jet', origin='lower', extent=(times[0], times[-1], sub_lim0[3], sub_lim1[3]), aspect='auto', vmin=-80, vmax=-10)
ax3.plot(sub_times[3], jars[3], 'k', label = 'peak detection trace', lw = 2)
#ax3.plot(sub_times[3], jars[3], 'k', label = 'peak detection trace', lw = 2)
ax3.set_xlim(times[0],times[-1])
ax3.set_xlabel('time [s]')
ax3.axes.yaxis.set_ticklabels([])
#ax3.axes.yaxis.set_ticklabels([])
ax3.set_title('∆F 10 Hz')
plt.subplots(sharex = True, sharey = True)
plt.show()
embed()