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

Home » Public Forums » archive » Re: CONTOUR & TRIGRID/TRIANGULATE
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: CONTOUR & TRIGRID/TRIANGULATE [message #48154] Fri, 31 March 2006 07:08 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ryan. writes:

> That code works great! Thank you so much for your help. I have one
> more question, I put a color bar on the graph (using your colorbar.pro)
> but the colorbar colors don't match what is on the contour. I can
> change the range of the color bar all I want and the colors don't
> change on the contour. I'm not sure what I'm doing wrong. I have the
> code you provided and this below it:
>
> COLORBAR, RANGE=[MIN(levels), MAX(levels)], NCOLORS=ncolors,
> DIVISIONS=8
>
> For Reference:
> c_colors = INDGEN(16)*15
> ncolors = nlevels +1

I think you need to read this article:

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

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: iTools Layout - Some help for once :-)
Next Topic: Corrected copy of Intro to IDL available

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

Current Time: Wed Oct 08 15:53:29 PDT 2025

Total time taken to generate the page: 0.00366 seconds