KPG1_PGLUT

Uses an array of colour representations to set up the PGPLOT colour table

Description:

This routine stores new colour representations for a range of PGPLOT colour indices. A list of NCOL colour representations is supplied. These are normalized so that the highest value produces full colour intensity. The first colour (1) is assigned to PGPLOT colour index LO, and the last (NCOL) is assigned to PGPLOT colour index HI. The colour representations for the PGPLOT colour indices between LO and HI are formed by interpolation amonst the supplied NCOL colours, using either nearest-neighbour or linear interpolation.

Invocation

CALL KPG1_PGLUT( NCOL, COLS, LO, HI, NN, STATUS )

Arguments

NCOL = INTEGER (Given)
The number of colour indices in the supplied colour table.
COLS( 3, NCOL ) = REAL (Given)
The lookup table. The first dimension is RGB. Values should lie in the range 0.0–1.0.
LO = INTEGER (Given)
The lowest PGPLOT colour index to use.
HI = INTEGER (Given)
The highest PGPLOT colour index to use.
NN = LOGICAL (Given)
If true, and the number of input and output colour indices are different, the nearest-neighbour method is used for assigning values in the output array. Otherwise linear interpolation is used. Nearest-neighbour preserves sharp edges in the lookup; linear interpolation is recommended for smoothly varying lookup tables.
STATUS = INTEGER (Given)
Global status.