Set this property equal to an integer or a string specifying the font style for the text. Set this property equal to an integer specifying the font size for the text. Set this property equal to a string specifying the IDL or system font for the text. Set this property to a string or RGB vector giving the color of the border and tickmarks of the colorbar. This property is ignored unless the DATA property is set. Set this property to 1 to clip portions of the graphic that lie outside of the dataspace range, or to 0 to disable clipping. Set this property to display a border around the image portion of the colorbar. Set this property to 0 to disable anti-aliasing. Propertiesīy default anti-aliasing is used when drawing lines. If the target does not have a color palette, then no colorbar will be created. If TARGET is not specified, and the RGB_TABLE property is not set, then any currently selected objects will be used. 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.