Re: How to plot coloured wire-mesh plot? [message #53464] |
Wed, 11 April 2007 12:38 |
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.")
|
|
|