topcolorbar
Graphics
Keywords
BOTTOM
default: 0B
CB_CHARSIZE
default: 1.0
CB_CHARTHICK
default: 1.0
CB_COLOR
default: ncolors - 1 + bottom
DIVISIONS
default: 2
DISCRETE
CB_LABEL
type: vector
POSITION
default: see below
MAX
default: NCOLORS - 1
MIN
default: 0
NCOLORS
default: !D.N_COLORS
PSCOLOR
CB_TITLE
default: ''
VERTICAL
default: 0 -> horizontal color bar
TOP
RIGHT
CB_LOG
NOTITLE
Examples
To display a horizontal color bar above a contour plot, type:
IDL> LOADCT, 5, NCOLORS=100
IDL> CONTOUR, DIST(31,41), POSITION=[0.15, 0.15, 0.95, 0.75], $
IDL> C_COLORS=INDGEN(25)*4, NLEVELS=25
IDL> COLORBAR, NCOLORS=100
Version history
Version
$Id: colorbar.pro 400 2009-07-17 10:27:52Z smasson $
History
Written by: David Fanning, 10 JUNE 96.
10/27/96: Added the ability to send output to PostScript. DWF
11/04/96: Substantially rewritten to go to screen or PostScript
file without having to know much about the PostScript device
or even what the current graphics device is. DWF
01/27/97: Added the RIGHT and TOP keywords. Also modified the
way the TITLE keyword works. DWF
07/15/97: Fixed a problem some machines have with plots that have
no valid data range in them. DWF
03/03/98: Add DISCRETE keyword, sebastien masson (smasson@lodyc.jussieu.fr)
Known issues
Restrictions
The number of colors available on the display device (not the
Postscript device) is used unless the NCOLORS keyword is used.
Statistics
McCabe cyclic | 34 |
McCabe essential | 1 |
McCabe modular design | 1 |