From 0d50ca603a40b8a015e686f5f49619b01088b09d Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Tue, 2 Jun 2009 20:43:07 +0000 Subject: Fix errors in examples in docstrings --- numpy/random/mtrand/mtrand.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/random') diff --git a/numpy/random/mtrand/mtrand.pyx b/numpy/random/mtrand/mtrand.pyx index 2bc2652fe..d69c99703 100644 --- a/numpy/random/mtrand/mtrand.pyx +++ b/numpy/random/mtrand/mtrand.pyx @@ -1279,7 +1279,7 @@ cdef class RandomState: >>> import matplotlib.pyplot as plt >>> import scipy.special as sps >>> count, bins, ignored = plt.hist(s, 50, normed=True) - >>> y = bins**(shape-1)*(exp(-bins/scale) / + >>> y = bins**(shape-1)*(np.exp(-bins/scale) / ... (sps.gamma(shape)*scale**shape)) >>> plt.plot(bins, y, linewidth=2, color='r') >>> plt.show() -- cgit v1.2.1