summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralex <argriffi@ncsu.edu>2015-04-29 12:54:03 -0400
committeralex <argriffi@ncsu.edu>2015-04-29 12:54:03 -0400
commit8206e8df495e0bd050e57cd74f6177058a61dc2b (patch)
tree97c48401130b28c0c531248ac63c19cc0e770d0e
parentb282d2abf8850f4e47eec73e44d250ac0b091284 (diff)
downloadnumpy-8206e8df495e0bd050e57cd74f6177058a61dc2b.tar.gz
DOC: improve the vonmises docstring example
-rw-r--r--numpy/random/mtrand/mtrand.pyx10
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/random/mtrand/mtrand.pyx b/numpy/random/mtrand/mtrand.pyx
index 69fc0414b..5c949d07b 100644
--- a/numpy/random/mtrand/mtrand.pyx
+++ b/numpy/random/mtrand/mtrand.pyx
@@ -2524,11 +2524,11 @@ cdef class RandomState:
the probability density function:
>>> import matplotlib.pyplot as plt
- >>> import scipy.special as sps
- >>> count, bins, ignored = plt.hist(s, 50, normed=True)
- >>> x = np.arange(-np.pi, np.pi, 2*np.pi/50.)
- >>> y = -np.exp(kappa*np.cos(x-mu))/(2*np.pi*sps.jn(0,kappa))
- >>> plt.plot(x, y/max(y), linewidth=2, color='r')
+ >>> from scipy.special import i0
+ >>> plt.hist(s, 50, normed=True)
+ >>> x = np.linspace(-np.pi, np.pi, num=51)
+ >>> y = np.exp(kappa*np.cos(x-mu))/(2*np.pi*i0(kappa))
+ >>> plt.plot(x, y, linewidth=2, color='r')
>>> plt.show()
"""