TEK_COLOR_SPECTRUM Name
TEK_COLOR_SPECTRUM Purpose
This function returns colour indices that make a spectrum out of the
TEK_COLOR colours. Category
Graphics
Calling Sequence
Result = TEK_COLOR_SPECTRUM( [Ncolors] ) Inputs
- Optional Inputs
Ncolors: The number of indices to return. Index values are
interpolated between the default 12 values (so some values are
repeated if Ncolors>12).
Keyword Parameters
-
Output
Result: The vector of colour index values. Uses
- Procedure
This function returns a set vector of index values.
Example
tek_color
ncolors = 12
Result = TEK_COLOR_SPECTRUM( ncolors )
plot, findgen( ncolors + 2 ), /nodata
plots, findgen( ncolors ) + 1, findgen( ncolors ) + 1, psym=4, $
color=result Modification History
Written by: Daithi A. Stone, 2002-09-11.
Modified: DAS, 2004-07-21 (added library documentation, Ncolors
input).