general/tools/misc/
dgen.pro
FUNCTION: dgen(n) PURPOSE: returns an array of n doubles that are scaled between two limits. INPUT: n: number of data points. (uses 100 if no value is passed) KEYWORDS: one of the next 3 keywords should be set: XRANGE: uses !x.crange (current x limits) for the scaling. YRANGE: uses !y.crange (current y limits) for the scaling. RANGE: user selectable range. LOG: user selectable log scale (Used with RANGE) EXAMPLES: x = dgen(/x) ; Returns 100 element array of points evenly distributed along ; the x-axis.
Routines
File attributes
Modification date: | Wed Dec 10 10:08:32 2014 |
Lines: | 34 |