Previous: utrs2 Up: ../plot79_u.html Next: utrsa
SUBROUTINE UTRS3 (XMIN,XMAX, N, XMINP,XMAXP, DIST) C$ (Define Logarithmic Scale Limits - Variable Interval) C$ Given estimated maximum and minimum values and a number of C$ logarithmic intervals, adjust the extrema to encompass the C$ desired number of intervals, such that they are "nice" C$ values for a plot. C$ C$ The input arguments are: C$ C$ XMIN.......Approximate minimum value. C$ XMAX.......Approximate maximum value. C$ N..........Approximate number of data intervals required. C$ C$ The output arguments are: C$ C$ XMINP......Adjusted minimum value. C$ XMAXP......Adjusted maximum value. C$ DIST.......Ratio between adjacent uniformly spaced C$ intervals. C$ C$ XMIN, XMAX, and N are not modified. C$ C$ VINT(*) is an array of acceptable vales for DIST (times an C$ integer power of 10). C$ C$ Author: C.R. Lewart, Comm. ACM. Algorithm 463 (1972). C$ C$ (30-JAN-82)