Language Reference |
calculates round numbers for labeling axes
X
.
The required input parameters are , a matrix of data values, and nincr, the number of intervals desired. If nincr is positive, the scaled range includes approximately nincr intervals. If nincr is negative, the scaled range includes exactly ABS(nincr) intervals. The nincr parameter cannot be zero.
The nicenum and fixed-end arguments are optional. The nicenum argument provides up to 10 numbers, all between 1 and 10 (inclusive of the endpoints), to be used for scaling. The default for nicenum is 1, 2, 2.5, and 5. The linear scale with this set of numbers is a scale with an interval size that is the product of an integer power of 10 and 1, 2, 2.5, or 5. Changing these numbers alters the rounding of the scaled values.
For fixed-end, U
fixes the upper end;
L
fixes the lower end; X
allows both ends to vary from the data values.
The default is X
.
An example that uses the GSCALE subroutine follows:
/* scalemat is set to {0,1000,100} */ call gscale(scalmat, {1 1000}, 10);
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.