Re: Discrete Color Bars [message #65685 is a reply to message #65684] |
Mon, 16 March 2009 20:07   |
TonyL
Messages: 14 Registered: November 2008
|
Junior Member |
|
|
On Mar 17, 1:11 am, Vince Hradil <vincehra...@gmail.com> wrote:
> On Mar 15, 11:17 pm, David Fanning <n...@dfanning.com> wrote:
>
>
>
>> Folks,
>
>> Colorbar is a nice program, very useful, etc. But it comes
>> up short when you need a color legend with just a handful
>> of colors. You have to have fairly specialized knowledge
>> to get the underlying Plot command to do what you want it
>> to do. And then you almost always have the problem that
>> the colorbar annotations do not line up with the actual
>> colors.
>
>> The problem has come home to roost one time too many
>> when I started to need limited color bars on a regular
>> basis. Too much fooling around!
>
>> So I sat down today and wrote what I wished I had
>> written years ago: a discrete color bar program, named
>> DCBar. Annotations are centered under the colors, and
>> the annotations can be rotated if you need more space.
>> The color bar can be displayed either horizontally
>> or vertically, and you can specify the colors you want
>> to use as color names, color indices into the current
>> color table, or as 24-bit integers that can be decomposed
>> into RGB colors. The program works with the other suite
>> of color programs found in the Coyote Library, and will
>> need some of them to work properly.
>
>> You can learn more about the program and see examples
>> in this article:
>
>> http://www.dfanning.com/color_tips/discretecb.html
>
>> The program itself is provided without a paid subscription
>> on my web page. ;-)
>
>> http://www.dfanning.com/programs/dcbar.pro
>
>> Donations, of course, are always appreciated and matched
>> by Coyote before being passed on to worthy organizations
>> devoted to helping those who need the help.
>
>> Cheers,
>
>> David
>> --
>> David Fanning, Ph.D.
>> Fanning Software Consulting, Inc.
>> Coyote's Guide to IDL Programming:http://www.dfanning.com/
>> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
>
> Excellent addition. Thanks David.
>
> Vince
>
> PS. the check's in the mail 8^)
Hi David,
A really nice utility...i thought it was time I paid for some of the
free advice I have got from you over the last few years, so i just
paypal'd you a small amount. Hope this spurs others to do the same.
Tony
|
|
|