From b9ae5a33b0438b0505d9ab1e2277992af3be78df Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Sat, 13 Feb 2016 16:43:37 +0100 Subject: DOC: fix a number of reST formatting issues in docstrings. --- numpy/random/mtrand/mtrand.pyx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'numpy/random') 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() -- cgit v1.2.1