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

Home » Public Forums » archive » Re: How to plot coloured wire-mesh plot?
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: How to plot coloured wire-mesh plot? [message #53464] Wed, 11 April 2007 12:38
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
vijay writes:

> Hi all, I want to create a coloured wire-mesh plot for an image. Using
> SURFACE command i had created the wire-mesh, in that plot i need
> different colours for different z values, that is if the z value is
> from 0 to 5 in that for 0 to 1 region i want it to be blue colour, 1
> to 2 as green,etc. Can any one tell me how to apply colours for the
> wire-mesh image.

Device, DECOMPOSED=0
LOADCT, 0
TVLCT, FSC_Color(['dodger blue', 'sea green', $
'firebrick', 'yellow', 'purple'], /TRIPLE), 1
data = Scale_Vector(dist(50), 0, 5)
Surface, data, Shades=BytScl(data, Top=4) + 1

You can find FSC_COLOR and SCALE_VECTOR on my web page.

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
Previous Topic: How to plot coloured wire-mesh plot?
Next Topic: Widget Communication

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

Current Time: Sat Oct 11 04:43:30 PDT 2025

Total time taken to generate the page: 0.16285 seconds