diff options
author | Paul Ivanov <paul.ivanov@local> | 2009-12-28 20:49:52 +0000 |
---|---|---|
committer | Paul Ivanov <paul.ivanov@local> | 2009-12-28 20:49:52 +0000 |
commit | e4f233ecfedd2aafa258db2d3ae27e30604cc020 (patch) | |
tree | 6d32fbdd19b8dca00cd7cafd8df076bac55ddfd8 /numpy/core/function_base.py | |
parent | 5ba01996a9ab2fdfb7c120a5afae801f854a781a (diff) | |
download | numpy-e4f233ecfedd2aafa258db2d3ae27e30604cc020.tar.gz |
fixed a whole bunch of doctests
Diffstat (limited to 'numpy/core/function_base.py')
-rw-r--r-- | numpy/core/function_base.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/numpy/core/function_base.py b/numpy/core/function_base.py index 33cf3a15b..b2f9dc70c 100644 --- a/numpy/core/function_base.py +++ b/numpy/core/function_base.py @@ -63,8 +63,11 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False): >>> x1 = np.linspace(0, 10, N, endpoint=True) >>> x2 = np.linspace(0, 10, N, endpoint=False) >>> plt.plot(x1, y, 'o') + [<matplotlib.lines.Line2D object at 0x...>] >>> plt.plot(x2, y + 0.5, 'o') + [<matplotlib.lines.Line2D object at 0x...>] >>> plt.ylim([-0.5, 1]) + (-0.5, 1) >>> plt.show() """ @@ -129,8 +132,10 @@ def logspace(start,stop,num=50,endpoint=True,base=10.0): ----- Logspace is equivalent to the code - >>> y = linspace(start, stop, num=num, endpoint=endpoint) + >>> y = np.linspace(start, stop, num=num, endpoint=endpoint) + ... # doctest: +SKIP >>> power(base, y) + ... # doctest: +SKIP Examples -------- @@ -149,8 +154,11 @@ def logspace(start,stop,num=50,endpoint=True,base=10.0): >>> x2 = np.logspace(0.1, 1, N, endpoint=False) >>> y = np.zeros(N) >>> plt.plot(x1, y, 'o') + [<matplotlib.lines.Line2D object at 0x...>] >>> plt.plot(x2, y + 0.5, 'o') + [<matplotlib.lines.Line2D object at 0x...>] >>> plt.ylim([-0.5, 1]) + (-0.5, 1) >>> plt.show() """ |