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 
Switch to threaded view of this topic Create a new topic Submit Reply
Help with iSurface colors [message #57182] Thu, 06 December 2007 09:15 Go to next message
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
Good day

i create surface in iSurface tool. But it's color little bad for data
analysys - there is only one color.

Can I set, for example, blue color for minimum values and red color
for maximum values ?

Thanks
Re: Help with iSurface colors [message #57368 is a reply to message #57182] Thu, 06 December 2007 10:28 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Vince Hradil writes:

> Of course. I read all the links you post, David.

No wonder you're not getting any work done. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Help with iSurface colors [message #57370 is a reply to message #57182] Thu, 06 December 2007 10:22 Go to previous messageGo to next message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Dec 6, 12:19 pm, David Fanning <da...@dfanning.com> wrote:
> Vince Hradil writes:
>> Update - I found it, I think. Take a look at VERT_COLORS keyword.
>
> I'll bet you read the article. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/

Of course. I read all the links you post, David.
Re: Help with iSurface colors [message #57371 is a reply to message #57182] Thu, 06 December 2007 10:19 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Vince Hradil writes:

> Update - I found it, I think. Take a look at VERT_COLORS keyword.

I'll bet you read the article. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Help with iSurface colors [message #57373 is a reply to message #57182] Thu, 06 December 2007 10:14 Go to previous messageGo to next message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Dec 6, 11:35 am, Vince Hradil <hrad...@yahoo.com> wrote:
> On Dec 6, 11:15 am, "skymaxw...@gmail.com" <skymaxw...@gmail.com>
> wrote:
>
>> Good day
>
>> i create surface in iSurface tool. But it's color little bad for data
>> analysys - there is only one color.
>
>> Can I set, for example, blue color for minimum values and red color
>> for maximum values ?
>
>> Thanks
>
> The surface can only be one color - do want to color the values
> according the the z-value? Maybe you can warp an image onto it?
> That's beyond me... sorry.

Update - I found it, I think. Take a look at VERT_COLORS keyword.
Re: Help with iSurface colors [message #57376 is a reply to message #57182] Thu, 06 December 2007 09:43 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Vince Hradil writes:

> The surface can only be one color - do want to color the values
> according the the z-value? Maybe you can warp an image onto it?

If so, here is an article that might help:

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

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Help with iSurface colors [message #57378 is a reply to message #57182] Thu, 06 December 2007 09:35 Go to previous messageGo to next message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Dec 6, 11:15 am, "skymaxw...@gmail.com" <skymaxw...@gmail.com>
wrote:
> Good day
>
> i create surface in iSurface tool. But it's color little bad for data
> analysys - there is only one color.
>
> Can I set, for example, blue color for minimum values and red color
> for maximum values ?
>
> Thanks

The surface can only be one color - do want to color the values
according the the z-value? Maybe you can warp an image onto it?
That's beyond me... sorry.
Re: Help with iSurface colors [message #57460 is a reply to message #57182] Sun, 09 December 2007 09:32 Go 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.")
Re: Help with iSurface colors [message #57461 is a reply to message #57182] Sun, 09 December 2007 09:27 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Dec 9, 11:15 am, "skymaxw...@gmail.com" <skymaxw...@gmail.com>
wrote:
> well... the new surface is bad ...
>
> now i'm not sure that VERT_COLORS is that i need
>
> 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 ?
>
> without object graphics ?

This image:
http://img511.imageshack.us/img511/7282/surfacedc6.png
was made using:
isurface, dist(40), vert_colors=dist(40), rgb_table=5
Re: Help with iSurface colors [message #57463 is a reply to message #57182] Sun, 09 December 2007 09:15 Go to previous message
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
well... the new surface is bad ...

now i'm not sure that VERT_COLORS is that i need

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 ?

without object graphics ?
Re: Help with iSurface colors [message #57472 is a reply to message #57182] Sun, 09 December 2007 05:47 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Dec 9, 6:08 am, "skymaxw...@gmail.com" <skymaxw...@gmail.com>
wrote:
> i'm not sure that understand article becouse my result little
> strange :)
> Here is fragment of my code
>
> colors=[0,50,100,150,200]
> data=p[68:98,2:9]
> LOADCT,5,RGB_TABLE=c_table
> ; ISURFACE,data,VERT_COLORS=colors
> ; MINMAX,data
> ISURFACE,data,RGB_TABLE=c_table,VERT_COLORS=colors
>
> in article showing nice picture example for direct graphics... where i
> can look it's source code ?
>
> Best regards

Look at the isurface help. vert_colors needs to be the same length as
the data, or it will be repeated.
Re: Help with iSurface colors [message #57475 is a reply to message #57376] Sun, 09 December 2007 04:08 Go to previous message
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
i'm not sure that understand article becouse my result little
strange :)
Here is fragment of my code


colors=[0,50,100,150,200]
data=p[68:98,2:9]
LOADCT,5,RGB_TABLE=c_table
; ISURFACE,data,VERT_COLORS=colors
; MINMAX,data
ISURFACE,data,RGB_TABLE=c_table,VERT_COLORS=colors



in article showing nice picture example for direct graphics... where i
can look it's source code ?

Best regards
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 17:28:23 PDT 2025

Total time taken to generate the page: 0.00355 seconds