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

Home » Public Forums » archive » Colorbar with fixed level and color
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: Colorbar with fixed level and color [message #84288 is a reply to message #81429] Tue, 07 May 2013 05:42 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Sam writes:

> Sorry,I forgot to mention about contour command I used.
>
> contour,z,levels=level,c_colors=colour,/cell_fill, c_linestyle=(level lt 0),/overplot,/noerase
>
> Here I find around zero lines the colour shift in one colour to that from colourbar.

Well, again, this confuses me. Why are the keywords OVERPLOT and NOERASE
being used together? Why CELL_FILL, since this is normally only used
with map projections, and there is no hint of a map projection here?

You loaded colors starting at color index 2 (Bottom=2), but your
contour plot is looking for colors starting at color index 0, and your
color bar is looking for the same colors at color index 1 (Bottom=1).

I'd say there is a pretty darn good chance your colors might be off a
little bit. :-)

If you match all this up, you should be good to go.

Another place to look for answers is in the Contour Plot chapter of my
book, available here:

http://www.idlcoyote.com/books/tg/samples/tg_chap5.pdf

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: the problem for GPULIB+IDL
Next Topic: Exponential of very small numbers

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

Current Time: Fri Oct 10 21:59:38 PDT 2025

Total time taken to generate the page: 0.42425 seconds