change: moved dB to math

This commit is contained in:
Benoît Sierro
2023-08-29 08:53:40 +02:00
parent c3d1d7f970
commit 9b331c1b88
4 changed files with 36 additions and 52 deletions

View File

@@ -39,7 +39,7 @@ quit()
interp = interp1d(stats["z"], solution, axis=0)
z = np.linspace(0, params.length, 128)
plt.imshow(
sc.units.to_log(interp(z)),
sc.math.to_dB(interp(z)),
vmin=-50,
extent=sc.get_extent(sc.units.THz_inv(params.w), z),
origin="lower",