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

Home » Public Forums » archive » cgScaleVector and diverging colorbar help
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: cgScaleVector and diverging colorbar help [message #91288 is a reply to message #91287] Thu, 25 June 2015 09:31 Go to previous messageGo to previous message
sam.tushaus is currently offline  sam.tushaus
Messages: 14
Registered: February 2015
Junior Member
Thanks! The scaling looks great. However, my image is still distorted (http://imgur.com/zj4DKnt, should be Great Lakes region).

Also, do you think I might be able to automate the color table creation, using the range/min/max?

On Thursday, June 25, 2015 at 11:23:40 AM UTC-5, David Fanning wrote:
> David Fanning writes:
>
>> Whoops! The cgColorbar command should have a range on it:
>>
>> cgColorbar, NColors=151, Range=[-5, 70]
>
> Sigh... Going back to bed. Let's try this again:
>
> data = cgScaleVector(cgDemoData(7), -5, 70)
> Loadct, 0 ; Reset colors
> cgLoadct, 1, NColors=10, Clip=[100,250]
> cgLoadCt, 3, NColors=140, Bottom=11, /Reverse
> TVLCT, cgColor('white', /Triple), 10
> cgImage, BytScl(data, Top=150), Position=[0.125, 0.1, 0.925, 0.75]
> cgColorbar, NColors=151, Range=[-5, 70]
> cIndex
> END
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FG image change
Next Topic: Storing values in array after each iteration in for loop

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

Current Time: Fri Oct 10 17:01:37 PDT 2025

Total time taken to generate the page: 0.63835 seconds