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

Home » Public Forums » archive » Help with iSurface colors
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: Help with iSurface colors [message #57460 is a reply to message #57182] Sun, 09 December 2007 09:32 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
skymaxwell@gmail.com writes:

> well... the new surface is bad ...
>
> now i'm not sure that VERT_COLORS is that i need

Oh, it's what you need, alright. :-)

>
> i have data[x,y]
>
> axis x - x
> axis y - y
> axis z - data[x,y]
>
> maximum value data[x,y] set to red color
> minimum value data[x,y] set to blue color
> and how use other colors between max and min values ?

Here is an article that describes how to create a
color table between red and blue colors:

http://www.dfanning.com/color_tips/create_colortable.html

Once you get the color table constructed, you make a
palette out of it like this:

palette = [[redVector],[greenVector], [blueVector]]

Then you use this palette and the VERT_COLORS as described
in this article:

http://www.dfanning.com/ographics_tips/elevation_object.html

I can assure you, it works perfectly. :-)

> without object graphics ?

Sorry, we are moving into the future. :-)

But, if you had to:

TV, palette
Surface, data, SHADES=BytScl(data)

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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: readf,1,format= ......
Next Topic: how to increase dpi of an IPLOT?

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

Current Time: Fri Oct 10 01:36:09 PDT 2025

Total time taken to generate the page: 0.48074 seconds