From ec09d2eea64ba3dc8ded627d4c037fd6c38686a0 Mon Sep 17 00:00:00 2001 From: Allen Downey Date: Tue, 2 Oct 2018 11:32:57 -0400 Subject: [PATCH] Updating library --- thinkbayes2/thinkbayes2.py | 8 ++++++-- thinkplot/thinkplot.py | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/thinkbayes2/thinkbayes2.py b/thinkbayes2/thinkbayes2.py index 1948f272..81939337 100644 --- a/thinkbayes2/thinkbayes2.py +++ b/thinkbayes2/thinkbayes2.py @@ -1846,7 +1846,11 @@ def MakeNormalPmf(mu, sigma, num_sigmas, n=201): def EvalBinomialPmf(k, n, p): """Evaluates the binomial PMF. - Returns the probabily of k successes in n trials with probability p. + k: number of successes + n: number of trials + p: probability of success on each trial + + returns: probabily of k successes in n trials with probability p. """ return stats.binom.pmf(k, n, p) @@ -1857,7 +1861,7 @@ def MakeBinomialPmf(n, p): n: number of trials p: probability of success on each trial - Returns: Pmf of number of successes + returns: Pmf of number of successes """ pmf = Pmf() for k in range(n+1): diff --git a/thinkplot/thinkplot.py b/thinkplot/thinkplot.py index 2a742281..0fca22b5 100644 --- a/thinkplot/thinkplot.py +++ b/thinkplot/thinkplot.py @@ -563,7 +563,7 @@ def Contour(obj, pcolor=False, contour=True, imshow=False, **options): except AttributeError: d = obj - _Underride(options, linewidth=3, cmap=matplotlib.cm.Blues) + _Underride(options, cmap=matplotlib.cm.Blues) xs, ys = zip(*d.keys()) xs = sorted(set(xs))