From e4f233ecfedd2aafa258db2d3ae27e30604cc020 Mon Sep 17 00:00:00 2001 From: Paul Ivanov Date: Mon, 28 Dec 2009 20:49:52 +0000 Subject: fixed a whole bunch of doctests --- numpy/lib/twodim_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/lib/twodim_base.py') diff --git a/numpy/lib/twodim_base.py b/numpy/lib/twodim_base.py index 0d53bbb68..40a5aec33 100644 --- a/numpy/lib/twodim_base.py +++ b/numpy/lib/twodim_base.py @@ -52,7 +52,7 @@ def fliplr(m): [ 3., 0., 0.]]) >>> A = np.random.randn(2,3,5) - >>> np.all(numpy.fliplr(A)==A[:,::-1,...]) + >>> np.all(np.fliplr(A)==A[:,::-1,...]) True """ @@ -582,7 +582,7 @@ def histogram2d(x,y, bins=10, range=None, normed=False, weights=None): >>> x, y = np.random.randn(2, 100) >>> H, xedges, yedges = np.histogram2d(x, y, bins=(5, 8)) >>> H.shape, xedges.shape, yedges.shape - ((5,8), (6,), (9,)) + ((5, 8), (6,), (9,)) We can now use the Matplotlib to visualize this 2-dimensional histogram: -- cgit v1.2.1