note | Call GET_NAMED_COLOR before calling JWAVE_LOADCT. This ensures that the colors retrieved by GET_NAMED_COLOR will be stored in the color table. The JWAVE_LOADCT procedure stores colors in the remaining color table positions. |
Number | Name |
---|---|
0 | Black and White Linear |
1 | Blue/White |
2 | Green/Red/Blue/White |
3 | Red Temperature |
4 | Blue/Green/Red/Yellow |
5 | Standard Gamma-II |
6 | Prism |
7 | Red/Purple |
8 | Green/White Linear |
9 | Green/White Exponential |
10 | Green/Pink |
11 | Blue/Red |
12 | 16 Level |
13 | 16 Level II |
14 | Steps |
15 | PV‑WAVE Special |
16 | Black and White Reversed |
note | Values returned by the Range_Of_Colors keyword in previous calls to GET_NAMED_COLOR may no longer be valid. Use the value of the Range_Of_Colors keyword from the last call to either GET_NAMED_COLOR or JWAVE_LOADCT. |
; Retrieve a color. This color is stored in the color table.
lc = GET_NAMED_COLOR('LINE', DefaultRGB='FFFFFF'xL)
; Load a color table. These colors are loaded into the remaining
; positions of the color table.
JWAVE_LOADCT, 15, Range_Of_Colors=range
; Byte scale range of colors that were stored in ”image” portion
; of the color table.
TV, BYTSCL(my_image, Top=range(1)-range(0)) + range(0)
; Make a plot using the color retrieved by GET_NAMED_COLOR.
PLOTS, overlay_data, Color=lc