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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user