Fixed alignment of measurements #300

Measurements should start at day 0, not day 1.
This commit is contained in:
Roger Labbe 2020-05-04 16:10:08 -07:00
parent 9bbe1066da
commit 64f873aa95
2 changed files with 47 additions and 14 deletions

File diff suppressed because one or more lines are too long

View File

@ -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')