Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > iTools colorbar
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 5698 of 5734
Post > Topic >>

iTools colorbar

by "Kenneth P. Bowman" <k-bowman@[EMAIL PROTECTED] > May 1, 2008 at 05:42 PM

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




 4 Posts in Topic:
iTools colorbar
"Kenneth P. Bowman&q  2008-05-01 17:42:18 
Re: iTools colorbar
"sdettrick@[EMAIL PR  2008-05-05 01:53:15 
Re: iTools colorbar
"Kenneth P. Bowman&q  2008-05-05 08:13:59 
Re: iTools colorbar
David Fanning <news@[E  2008-05-05 12:27:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 0:55:03 CDT 2008.