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

Home » Public Forums » archive » Re: Error in coyote's 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
Re: Error in coyote's colorbar [message #56288 is a reply to message #56284] Fri, 12 October 2007 08:38 Go to previous messageGo to previous message
Loren Anderson is currently offline  Loren Anderson
Messages: 22
Registered: August 2007
Junior Member
Another way to approach this problem may be to scale the colors and
not the image, especially since you are working with a small dynamic
range.

TVLCT, r, g, b, /Get
rnew = logscl(r) ;These are David Fanning routines as well
bnew = logscl(g)
gnew = logscl(b)
TVLCT, rnew, gnew, bnew
colorbar, minrange = 0, maxrange = 70.7107, format = '(f6.2)', /
vertical, /right

The colors in the colorbar are logarithmic, but the values are linear,
if that makes any sense. I don't like scaling the images because it
can take a long time for the images I work with. I think it's easier
to read too.

-Loren
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: structure into strcuture
Next Topic: map_set and limit question

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

Current Time: Sat Nov 29 07:08:29 PST 2025

Total time taken to generate the page: 1.28346 seconds