diff options
author | Ralf Gommers <ralf.gommers@gmail.com> | 2016-02-13 16:43:37 +0100 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@gmail.com> | 2016-02-13 16:43:37 +0100 |
commit | b9ae5a33b0438b0505d9ab1e2277992af3be78df (patch) | |
tree | 8c215b4f01fb00f8db73b189c806e5d0da04a95d /numpy/random | |
parent | 8a3bbdea760329acb58f89e774f4c08acbac7e07 (diff) | |
download | numpy-b9ae5a33b0438b0505d9ab1e2277992af3be78df.tar.gz |
DOC: fix a number of reST formatting issues in docstrings.
Diffstat (limited to 'numpy/random')
-rw-r--r-- | numpy/random/mtrand/mtrand.pyx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/numpy/random/mtrand/mtrand.pyx b/numpy/random/mtrand/mtrand.pyx index e5998c001..b168bf79c 100644 --- a/numpy/random/mtrand/mtrand.pyx +++ b/numpy/random/mtrand/mtrand.pyx @@ -4299,11 +4299,13 @@ cdef class RandomState: the probability density function: >>> import matplotlib.pyplot as plt - >>> import scipy.special as sps - Truncate s values at 50 so plot is interesting + >>> from scipy import special + + Truncate s values at 50 so plot is interesting: + >>> count, bins, ignored = plt.hist(s[s<50], 50, normed=True) >>> x = np.arange(1., 50.) - >>> y = x**(-a)/sps.zetac(a) + >>> y = x**(-a) / special.zetac(a) >>> plt.plot(x, y/max(y), linewidth=2, color='r') >>> plt.show() |