Cleaned up example for 1D vs 2D filter

The code was very unclear, including unused variables.

I also expanded the example.
This commit is contained in:
Roger Labbe 2015-08-08 17:22:28 -07:00
parent b0a4b5d159
commit 2ad95fa0e1
2 changed files with 216 additions and 119 deletions

File diff suppressed because one or more lines are too long

View File

@ -483,7 +483,7 @@ def plot_track(ps, actual, zs, cov, std_scale=1,
ax.set_title("$\sigma^2_x$ (pos variance)")
plot_covariance(cov, (0, 0))
ax = plt.subplot(122)
ax.set_title("$\sigma^2_y$ (vel variance)")
ax.set_title("$\sigma^2_\dot{x}$ (vel variance)")
plot_covariance(cov, (1, 1))
plt.show()