


Set this keyword to the visualization to which the colorbar should be associated. Note: When using /RELATIVE, even though the coordinates are relative to the TARGET's dataspace, the graphic is added to the annotation layer, not to the dataspace. If the TARGET keyword is not specified, then setting /RELATIVE is the same as setting /NORMAL. Set this keyword to indicate that the input arguments are specified in normalized coordinates, relative to the axis range of the TARGET's dataspace. Set this keyword if the POSITION units are in normal coordinates (the default). Set this keyword if the POSITION units are in device coordinates. Set this keyword if the POSITION units are in data coordinates. Keywords are applied only during the initial creation of the graphic. Use the returned reference to manipulate the graphic after creation by changing properties or calling methods. The COLORBAR function returns a reference to the created graphic. Properties can be set as keywords to the function during creation, or retrieved or changed using the "." notation after creation.ĪNTIALIAS, BORDER, CLIP, COLOR, FONT_NAME, FONT_SIZE, FONT_STYLE, HIDE, MAJOR, MINOR, NAME, ORIENTATION, POSITION, RANGE, RGB_TABLE, SUBTICKLEN, TAPER, TEXT_COLOR, TEXT_ORIENTATION, TEXTPOS, THICK, TICKDIR, TICKFORMAT, TICKINTERVAL, TICKLAYOUT, TICKLEN, TICKNAME, TICKVALUES, TITLE, TRANSPARENCY, UVALUE, WINDOW Methods file = FILEPATH( 'surface.dat', $ SUBDIR=) data = READ_BINARY(file, DATA_DIMS=, $ DATA_TYPE= 2, ENDIAN= 'little') im = IMAGE(data, RGB_TABLE= 4, $ POSITION=, $ FONT_COLOR= 'Blue', FONT_SIZE= 16, $ TITLE= 'Maroon Bells') Add a colorbar c = COLORBAR(TARGET=im, ORIENTATION= 1, $ POSITION=, $ TITLE= 'Elevation (m)') Change some properties c.TEXTPOS = 0 c.TICKDIR = 1 c.BORDER_ON = 1 c.COLOR = 'Blue' c.FONT_STYLE = 'Italic' c.FONT_SIZE = 16 Syntax With the COLORBAR function, you can add a colorbar annotation to an existing IDL Graphic, or create a colorbar from scratch.
