Copy edit of chapter 8.

Note fully done, still have to figure out what to do with the ball
tracking code, and add a control example to the chapter.
This commit is contained in:
Roger Labbe
2015-07-13 14:42:34 -07:00
parent acdc04af34
commit 8b233b4ff5
5 changed files with 768 additions and 884 deletions

View File

@@ -83,8 +83,13 @@ def plot_measurements(xs, ys=None, color='r', lw=2, label='Measurements', **kwar
def plot_residual_limits(Ps):
std = np.sqrt(Ps)
def plot_residual_limits(Ps, stds=1.):
""" plots standand deviation given in Ps as a yellow shaded region. One std
by default, use stds for a different choice (e.g. stds=3 for 3 standard
deviations.
"""
std = np.sqrt(Ps) * stds
plt.plot(-std, color='k', ls=':', lw=2)
plt.plot(std, color='k', ls=':', lw=2)