Skip to content

Commit

Permalink
Only plot first receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Jul 6, 2024
1 parent 4d8a750 commit 0355261
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/python/fdtd/process_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,19 +245,19 @@ def plot_filtered_outputs(self):

fig = plt.figure()
ax = fig.add_subplot(2, 1, 1)
for i in range(r_out_f.shape[0]):
for i in range(1): # r_out_f.shape[0]
ax.plot(tv,r_out_f[i],linestyle='-',label=f'R{i+1}')
ax.set_title('r_out filtered')
ax.margins(0, 0.1)
# ax.set_xlim((0,0.1))
ax.set_xlim((0,0.1))
ax.set_xlabel('time (s)')
ax.grid(which='both', axis='both')
ax.legend()

ax = fig.add_subplot(2, 1, 2)
r_out_f_fft_dB = 20*log10(np.abs(rfft(r_out_f,Nfft,axis=-1))+np.spacing(1))
dB_max = np.max(r_out_f_fft_dB)
for i in range(r_out_f.shape[0]):
for i in range(1): # r_out_f.shape[0]
ax.plot(fv,r_out_f_fft_dB[i],linestyle='-',label=f'R{i+1}')
ax.set_title('r_out filtered')
ax.margins(0, 0.1)
Expand Down

0 comments on commit 0355261

Please sign in to comment.