# TOMS463 Determination of Scales for Computer Generated Plots

TOMS463 is a FORTRAN77 library which implements ACM TOMS algorithm 463, for determining a nice, rounded range and interval width for a computer-generated plot.

The text of many ACM TOMS algorithms is available online through ACM: http://www.acm.org/pubs/calgo or NETLIB: http://www.netlib.org/toms/index.html.

### Usage:

call scale1 ( xmin, xmax, n, xminp, xmaxp, dist )
where XMIN and XMAX are the data range, and N is the desired number of intervals. The revised range is XMINP to XMAXP, with an interval width of DIST and approximately N intervals.
call scale2 ( xmin, xmax, n, xminp, xmaxp, dist )
where XMIN and XMAX are the data range, and N is the desired number of intervals. The revised range is XMINP to XMAXP, with an interval width of DIST, and exactly N intervals.
call scale3 ( xmin, xmax, n, xminp, xmaxp, dist )
where XMIN and XMAX are the data range, and N is the desired number of intervals. The revised range is XMINP to XMAXP, with N logarithmic intervals whose successive ratio is DIST.

### Languages:

TOMS463 is available in a FORTRAN77 version.

### Reference:

1. CR Lewart,
Algorithm 463: Algorithms SCALE1, SCALE2 and SCALE3 for Determination of Scales for Computer Generated Plots,
Communications of the ACM,
October 1973, Volume 16, Number 10, pages 639-640.

### List of Routines:

• SCALE1 determines a range for data which embraces the original range and uses approximately N intervals.
• SCALE2 determines a range for data which embraces the original range and uses exactly N intervals.
• SCALE3 determines a range for data such that N logarithmically spaced intervals will cover the range.

You can go up one level to the FORTRAN77 source codes.

Last revised on 09 December 2005.