mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m-thesis-introduction.git
synced 2024-12-22 03:23:34 +01:00
ZH: missed path.basename for fig_fnames
This commit is contained in:
parent
d0320298c2
commit
092c9344f3
2 changed files with 6 additions and 6 deletions
|
@ -343,18 +343,18 @@ if __name__ == "__main__":
|
|||
wx, x = 200, min(ant.t_AxB)
|
||||
ax.set_xlim(x-5, x+wx)
|
||||
|
||||
fig.savefig(path.join(fig_dir, __file__+f'.traces.A{ant.name}.zoomed.beacon.pdf'))
|
||||
fig.savefig(path.join(fig_dir, path.basename(__file__)+f'.traces.A{ant.name}.zoomed.beacon.pdf'))
|
||||
|
||||
if True: # zoomed on peak of this trace
|
||||
idx = np.argmax(ev.antennas[i].E_AxB)
|
||||
x = ev.antennas[i].t_AxB[idx]
|
||||
wx = 300
|
||||
ax.set_xlim(x-wx//2, x+wx//2)
|
||||
fig.savefig(path.join(fig_dir, __file__+f".traces.A{ant.name}.zoomed.peak.pdf"))
|
||||
fig.savefig(path.join(fig_dir, path.basename(__file__)+f".traces.A{ant.name}.zoomed.peak.pdf"))
|
||||
|
||||
ax.set_xlim(*old_xlim)
|
||||
|
||||
fig.savefig(path.join(fig_dir, __file__+f'.traces.A{ant.name}.pdf'))
|
||||
fig.savefig(path.join(fig_dir, path.basename(__file__)+f'.traces.A{ant.name}.pdf'))
|
||||
|
||||
if show_plots:
|
||||
plt.show()
|
||||
|
|
|
@ -187,18 +187,18 @@ if __name__ == "__main__":
|
|||
wx, x = 100, 100
|
||||
ax.set_xlim(x-wx, x+wx)
|
||||
|
||||
fig.savefig(path.join(fig_dir, __file__+f'.traces.A{ant.name}.zoomed.beacon{fname_extra}.pdf'))
|
||||
fig.savefig(path.join(fig_dir, path.basename(__file__)+f'.traces.A{ant.name}.zoomed.beacon{fname_extra}.pdf'))
|
||||
|
||||
if True: # zoomed on peak of this trace
|
||||
idx = np.argmax(ev.antennas[i].E_AxB)
|
||||
x = ev.antennas[i].t_AxB[idx]
|
||||
wx = 100
|
||||
ax.set_xlim(x-wx, x+wx)
|
||||
fig.savefig(path.join(fig_dir, __file__+f".traces.A{ant.name}.zoomed.peak{fname_extra}.pdf"))
|
||||
fig.savefig(path.join(fig_dir, path.basename(__file__)+f".traces.A{ant.name}.zoomed.peak{fname_extra}.pdf"))
|
||||
|
||||
ax.set_xlim(*old_xlim)
|
||||
|
||||
fig.savefig(path.join(fig_dir, __file__+f'.traces.A{i}.pdf'))
|
||||
fig.savefig(path.join(fig_dir, path.basename(__file__)+f'.traces.A{i}.pdf'))
|
||||
|
||||
|
||||
N_X, Xlow, Xhigh = 23, 100, 1200
|
||||
|
|
Loading…
Reference in a new issue