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

Home » Public Forums » archive » Re: IDLgrColorbar object
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDLgrColorbar object [message #13574] Tue, 17 November 1998 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Peter Connell (connell2@llnl.gov) writes:

> I am attempting to use the Colorbar object in IDL 5.1 as a legend for a
> color-filled contour OOG plot. I am confused by the interactions of the
> COORD_CONV, DIMENSIONS, TICKVALUES, TICKTEXT, and MAJOR keywords with
> respect to positioning and labeling the colorbar. More specifically,
> COORD_CONV and DIMENSIONS seem to be related to data/normal coordinate
> conversion, while TICKVALUES seems to work with palette indices. Can anyone
> provide for me a clearer succinct explanation than appears in the IDL
> documentation?

You and I and everyone else I know who has tried
to use it are confused. I can only conclude that
whoever wrote that routine understands object graphics
a hell of a lot better than I do. :-(

I finally resorted to writing my own, which have the
advantage of thinking like I do. There is one for a
horizontal color bar and one for vertical. I like
them because you can give a range to the color bar with
a RANGE keyword, and you can position it in your
coordinate space with a POSITION keyword. Even I
can understand what these keywords do. :-)

You can find them on my web page:

http://www.dfanning.com/programs/vcolorbar__define.pro
http://www.dfanning.com/programs/hcolorbar__define.pro

Cheers,

David

---------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com Phone: 970-221-0438
Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/

Note: A copy of this article was e-mailed to the original poster.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 'plots' inaccuracies in Win95, OK in Unix
Next Topic: Assignment, Form 5 (what they didn't tell you in the manuals)

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

Current Time: Wed Oct 08 17:36:39 PDT 2025

Total time taken to generate the page: 0.00437 seconds