diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-07-01 17:36:14 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-07-01 17:36:14 +0000 |
commit | b8030615d5b5bef97d212c7ef0ac7dff7e7d3bf6 (patch) | |
tree | d393f12a86ad94f385d2353a7e687347148adfd4 /numpy/lib/function_base.py | |
parent | 3bf7055cef2d027048f09d318cdff0dd3160d085 (diff) | |
download | numpy-b8030615d5b5bef97d212c7ef0ac7dff7e7d3bf6.tar.gz |
Adjust histogram2d a bit. Fix doc for logspace.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 05dfa9e23..f1d31c856 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -29,8 +29,8 @@ from _compiled_base import digitize as _digitize def linspace(start, stop, num=50, endpoint=True, retstep=False): """Return evenly spaced numbers. - Return 'num' evenly spaced samples from 'start' to 'stop'. If - 'endpoint' is True, the last sample is 'stop'. If 'retstep' is + Return num evenly spaced samples from start to stop. If + endpoint is True, the last sample is stop. If retstep is True then return the step value used. """ num = int(num) @@ -51,9 +51,8 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False): def logspace(start,stop,num=50,endpoint=True,base=10.0): """Evenly spaced numbers on a logarithmic scale. - Computes int(num) evenly spaced exponents from start to stop. - If endpoint=True, then last exponent is stop. - Returns base**exponents. + Computes int(num) evenly spaced exponents from base**start to + base**stop. If endpoint=True, then last number is base**stop """ y = linspace(start,stop,num=num,endpoint=endpoint) return _nx.power(base,y) |