Description of ellipse shape was incorrect.

While I was changing this, I also alterted the plots to make them
more readalbe.
This commit is contained in:
Roger Labbe 2016-09-23 12:08:39 -07:00
parent 81ab95d5a9
commit 30874bae62
2 changed files with 41 additions and 53 deletions

File diff suppressed because one or more lines are too long

View File

@ -60,9 +60,8 @@ def zs_var_275():
def plot_track_ellipses(N, zs, ps, cov, title):
bp.plot_measurements(range(1,N + 1), zs)
plt.plot(range(1, N + 1), ps, c='b', lw=2, label='filter')
plt.legend(loc='best')
#bp.plot_measurements(range(1,N + 1), zs)
#plt.plot(range(1, N + 1), ps, c='b', lw=2, label='filter')
plt.title(title)
for i,p in enumerate(cov):
@ -75,11 +74,8 @@ def plot_track_ellipses(N, zs, ps, cov, title):
plt.text (20, 5, s, fontsize=18)
s = ('$\sigma^2_{vel} = %.2f$' % p[1, 1])
plt.text (20, 0, s, fontsize=18)
plt.xlim(-10, 80)
plt.ylim(-5, 20)
plt.gca().set_aspect('equal')
plt.show()
def plot_gaussian_multiply():