spacepy.toolbox.logspace¶
-
spacepy.toolbox.
logspace
(min, max, num, **kwargs)[source]¶ Returns log-spaced bins. Same as numpy.logspace except the min and max are the min and max not log10(min) and log10(max)
- Parameters
- minfloat
minimum value
- maxfloat
maximum value
- numinteger
number of log spaced bins
- Returns
- outarray
log-spaced bins from min to max in a numpy array
- Other Parameters
- kwargsdict
additional keywords passed into matplotlib.dates.num2date
Notes
This function works on both numbers and datetime objects
Examples
>>> import spacepy.toolbox as tb >>> tb.logspace(1, 100, 5) array([ 1. , 3.16227766, 10. , 31.6227766 , 100. ])