autoscale Tcl Command

## NAME

autoscale - compute a scale for plotting

## SYNOPSIS

**::dmh::autoscale ***minimum maximum ?ntic?*

## DESCRIPTION

This command takes as input uneven minimum and maximum values and computes a scaling that has rounded values encompassing the input values. The command is typically used to compute the scale of a plot. The *ntic* argument specifies the suggested maximum number of major intervals for the computed scale. It defaults to 8.

The returned value is a four element list of the form {**rounded_min rounded_max needed_tic increment**} where *needed_tic* gives the number of intervals of size *increment* that are needed to span from rounded_min to *rounded_max*.

autoscale 23.2 67.5
20.0 70.0 5 10.0

## AUTHOR

Ed Hume, Hume Integration Software

## KEYWORDS

plot, scale