Corrected bug with time vector used in plotting scripts.

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

查看文件

@@ -73,8 +73,7 @@ def mpl_plot(w, timewindow, dt, iterations, fft=False):
plt (object): matplotlib plot object.
"""
time = np.linspace(0, 1, iterations)
time *= (iterations * dt)
time = np.linspace(0, (iterations - 1) * dt, num=iterations)
waveform = np.zeros(len(time))
timeiter = np.nditer(time, flags=['c_index'])