This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cs401r_w2016:lab8 [2018/03/12 22:32] sadler [Hints:] |
cs401r_w2016:lab8 [2021/06/30 23:42] (current) |
||
---|---|---|---|
Line 126: | Line 126: | ||
show_map( room_map ) | show_map( room_map ) | ||
plt.scatter(particles[0,:] , particles[1,:], c="yellow") | plt.scatter(particles[0,:] , particles[1,:], c="yellow") | ||
- | plt.plot(true_values[0,:t], true_values[1,:t] , c= "green", label="Actual Position") | + | plt.plot(true_values[0,:t+1], true_values[1,:t+1] , c= "green", label="Actual Position") |
- | plt.plot(predicted_values[0,:t], predicted_values[1,:t], c= "red", label="Estimated Position") | + | plt.plot(predicted_values[0,:t+1], predicted_values[1,:t+1], c= "red", label="Estimated Position") |
plt.legend(loc=1) | plt.legend(loc=1) | ||
plt.show() | plt.show() | ||
</code> | </code> |