Changes to condense material.

Lots of small changes to try to get page count down. I'm not liking
this.
This commit is contained in:
Roger Labbe
2015-04-20 17:14:51 -07:00
parent dda63fb329
commit 8bae16b811
10 changed files with 963 additions and 931 deletions

View File

@@ -157,6 +157,7 @@ def multivariate_gaussian(x, mu, cov):
def plot_gaussian(mean, variance,
mean_line=False,
xlim=None,
ylim=None,
xlabel=None,
ylabel=None):
""" plots the normal distribution with the given mean and variance. x-axis
@@ -182,6 +183,9 @@ def plot_gaussian(mean, variance,
plt.plot(xs,n.pdf(xs))
plt.xlim((min_x, max_x))
if ylim is not None:
plt.ylim(ylim)
if mean_line:
plt.axvline(mean)
if xlabel: