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

Home » Public Forums » archive » Re: color by variable interpolate?
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: color by variable interpolate? [message #50123] Tue, 12 September 2006 08:22 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jonathan Wolfe writes:

> Thanks David for your help! That is a pretty nifty function (bytscl).

It's, uh, used pretty often. :-)

> In the end, my final code looks like this for anyone who is
> interested...
>
> LoadCT, 34, /silent ; Rainbow color table
>
> ; Scale temp from 12 to 255.
> color = BytScl( T, Top=255-12) + 12B
>
> plot,x,y,/nodata
> PLOTS, x,y , PSym=sym(3), Color=color
>
> Note that in the absence of the for loop, as David mentioned, you do
> not need to sort the array and color=color not T. :-)

I've really got to start drinking my coffee before I start
answering newsgroup queries. Ah, the perils of a home
office. :-(

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Changing the Dec labeling from horizontal to vertical
Next Topic: Reading from the prompt

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

Current Time: Sat Oct 11 18:46:01 PDT 2025

Total time taken to generate the page: 0.25410 seconds