Pulse: ResVsnr: lower ylimit at 1e-1

This commit is contained in:
Eric Teunis de Boone 2023-05-17 18:17:37 +02:00
parent d1c89547b1
commit eac9285efe

View file

@ -656,6 +656,11 @@ if __name__ == "__main__":
if True: # limit y-axis to 1e1 if True: # limit y-axis to 1e1
ax.set_ylim([None, 1e1]) ax.set_ylim([None, 1e1])
if True: # require y-axis lower limit to be at least 1e-1
low_ylims = ax.get_ylim()[0]
if low_ylims >= 1e-1:
ax.set_ylim([1e-1, None])
fig.tight_layout() fig.tight_layout()
if len(template_dts) == 1: if len(template_dts) == 1:
fig.savefig(f"figures/11_time_res_vs_snr_tdt{template_dt:0.1e}.pdf") fig.savefig(f"figures/11_time_res_vs_snr_tdt{template_dt:0.1e}.pdf")