Skip to content

Commit a666317

Browse files
committed
fixed bug where vector lengths might not agree
1 parent 03c9e6a commit a666317

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pynumdiff/utils/evaluate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def plot(x, dt, x_hat, dxdt_hat, x_truth, dxdt_truth, xlim=None, show_error=True
2222
2323
:return: Display two plots
2424
"""
25-
t = np.arange(0, dt*len(x), dt)
25+
t = np.arange(len(x))*dt
2626
if xlim is None:
2727
xlim = [t[0], t[-1]]
2828

0 commit comments

Comments
 (0)