I am making an iTools plot and need to add a colorbar to an existing iTool.
I am doing it this way:
IPLOT, [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], OVERPLOT = itool_id, /HIDE, $
/INSERT_COLORBAR, RGB_TABLE = rgb_table
colorbar_id = itool_obj -> FindIdentifiers('*COLORBAR', /ANNOTATION)
colorbar_obj = itool_obj -> GetByIdentifier(colorbar_id[0])
colorbar_obj -> SetProperty, ORIENTATION = 1, $
BORDER = 1, $
TITLE = 'Ozone (ppbv)', $
MAJOR = 5, $
MINOR = 1
itool_obj -> RefreshCurrentWindow
The color bar appears, and I can successfully change some
properties (orientation, number of ticks, add a border), but
am unable to change others (title, tick labels, size and
position of colorbar).
If I use the DIMENSIONS keyword, it changes the size of the
colorbar image, but not the border and annotation.
I could do it interactively, but that means that no two plots would
ever have the same color bar in the same place. Plus it gets old
after a few hundred plots. :-(
I have looked at the IDLgrColorbar properties, and the properties
that can be edited interactively in the iTool, but I am stumped.
Can anyone tell me how to change a colorbar's title, labels,
position, and size?
Ken Bowman


|