Fixed alignment of measurements #300
Measurements should start at day 0, not day 1.
This commit is contained in:
parent
9bbe1066da
commit
64f873aa95
File diff suppressed because one or more lines are too long
@ -179,7 +179,7 @@ def plot_gh_results(weights, estimates, predictions, actual, time_step=0):
|
||||
else:
|
||||
rng = range(n, n+1)
|
||||
xs = range(n+1)
|
||||
book_plots.plot_measurements(xs[1:], weights, color='k', lines=False)
|
||||
book_plots.plot_measurements(weights, color='k', lines=False)
|
||||
book_plots.plot_filter(xs, estimates, marker='o', label='Estimates')
|
||||
book_plots.plot_track(xs[1:], predictions, c='r', marker='v', label='Predictions')
|
||||
plt.plot([xs[0], xs[-1]], actual, c='k', lw=1, label='Actual')
|
||||
|
Loading…
Reference in New Issue
Block a user