FORMAT_AXIS_VALUES

The FORMAT_AXIS_VALUES function accepts a vector of numeric values as an input argument, and returns a vector of formatted strings values. This routine uses the same rules for formatting as do the axis routines that label tick marks given a set of tick values.

Calling Sequence

Result = FORMAT_AXIS_VALUES( Values )

Arguments

Values

Set this argument to a vector of numeric values to be formatted.

Keywords

None.

Example

Suppose we have a vector of axis values:

axis_values = [7.9, 12.1, 15.3, 19.0]

Convert these values into an array of strings:

new_values = FORMAT_AXIS_VALUES(axis_values)

HELP, new_values

PRINT, new_values

PRINT, axis_values

IDL prints:

NEW_VALUES STRING = Array[4]

7.9 12.1 15.3 19.0

7.90000 12.1000 15.3000 19.0000