Corrected bug with time vector used in plotting scripts.

这个提交包含在:
craig-warren
2018-07-17 15:42:20 +01:00
父节点 bdef5c5ac5
当前提交 a704243598
共有 5 个文件被更改,包括 9 次插入10 次删除

查看文件

@@ -47,8 +47,9 @@ def mpl_plot(filename, outputs=Rx.defaultoutputs, fft=False):
nrx = f.attrs['nrx']
dt = f.attrs['dt']
iterations = f.attrs['Iterations']
time = np.linspace(0, 1, iterations)
time *= (iterations * dt)
time = np.linspace(0, (iterations - 1) * dt, num=iterations)
print(time[0], time[1], time[-1])
print(time.size)
# Check there are any receivers
if nrx == 0: