diff options
author | Alan McIntyre <alan.mcintyre@local> | 2008-07-03 03:51:46 +0000 |
---|---|---|
committer | Alan McIntyre <alan.mcintyre@local> | 2008-07-03 03:51:46 +0000 |
commit | 94bc330296e01d8fc0cb14aba1354ddb6d8587cc (patch) | |
tree | 1137428631e3d56ed3251a732e82dfd8778547c0 /numpy/lib/shape_base.py | |
parent | 24af452d6573d66faedff2b4b98993a8c0664e97 (diff) | |
download | numpy-94bc330296e01d8fc0cb14aba1354ddb6d8587cc.tar.gz |
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.
Diffstat (limited to 'numpy/lib/shape_base.py')
-rw-r--r-- | numpy/lib/shape_base.py | 5 |
1 files changed, 2 insertions, 3 deletions
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], |