Help with iSurface colors [message #57182] |
Thu, 06 December 2007 09:15  |
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 #57460 is a reply to message #57182] |
Sun, 09 December 2007 09:32  |
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  |
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  |
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  |
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  |
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
|
|
|