Welcome to the Exelis VIS product documentation center! Here you will find reference guides, help documents, and product libraries. Discover the products including ENVI, IDL, and ENVI LiDAR, and solutions developed by Exelis VIS at www.exelisvis.com.


exelisvis.com / Docs Center / IDL Reference / Direct Graphics / FORMAT_AXIS_VALUES

FORMAT_AXIS_VALUES

FORMAT_AXIS_VALUES

The FORMAT_AXIS_VALUES function converts a vector of numeric values into a vector of string values. This routine uses the same rules for formatting as do the axis routines that label tick marks given a set of tick values.

Examples


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

Syntax


Result = FORMAT_AXIS_VALUES( Values )

Return Value


Returns a vector of formatted string values from an input vector of numeric values.

Arguments


Values

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

Keywords


None.

Version History


5.1

Introduced



Comments


This page has no comments yet. Be the first one!

© 2013 Exelis Visual Information Solutions