From 94bc330296e01d8fc0cb14aba1354ddb6d8587cc Mon Sep 17 00:00:00 2001 From: Alan McIntyre Date: Thu, 3 Jul 2008 03:51:46 +0000 Subject: Use the implicit "import numpy as np" made available to all doctests instead of an explicit import. Remove ">>>" from bartlett plotting example since it currently requires matplotlib. --- numpy/lib/shape_base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'numpy/lib/shape_base.py') diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py index 9ac77666f..77f158eb3 100644 --- a/numpy/lib/shape_base.py +++ b/numpy/lib/shape_base.py @@ -192,15 +192,14 @@ def vstack(tup): tup -- sequence of arrays. All arrays must have the same shape. Examples: - >>> import numpy >>> a = array((1,2,3)) >>> b = array((2,3,4)) - >>> numpy.vstack((a,b)) + >>> np.vstack((a,b)) array([[1, 2, 3], [2, 3, 4]]) >>> a = array([[1],[2],[3]]) >>> b = array([[2],[3],[4]]) - >>> numpy.vstack((a,b)) + >>> np.vstack((a,b)) array([[1], [2], [3], -- cgit v1.2.1