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 #91287 is a reply to message #91286] Thu, 25 June 2015 09:23 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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: Wed Oct 08 20:10:10 PDT 2025

Total time taken to generate the page: 0.00447 seconds