comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » iTools colorbar
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
iTools colorbar [message #60085] Thu, 01 May 2008 16:42 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: System Variable question
Next Topic: Re: System Variable question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 05:46:21 PDT 2025

Total time taken to generate the page: 0.08850 seconds