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

Home » Public Forums » archive » Re: Filled contours + labels of different 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: Filled contours + labels of different color [message #63993] Tue, 25 November 2008 08:59 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
MichaelT writes:

> So how can I plot labels of a certain color + filled contours? If
> there is a two step process, I do not mind: Eg. first plot the filled
> contours without labels and then the labels with a different color
> (white) - but without additional contours! I was unable to come up
> with a solution... Is it too obvious for me to see?

Typically, you draw the filled contours, and then overplot
the contour lines:

data = dist(200)
loadct, 5, ncolors=12, bottom=1
device, decomposed=0, get_decomposed=theState
contour, data, nlevels=12, /fill, c_colors = indgen(12) + 1
contour, data, nlevels=12, /overplot, c_label=replicate(1,12)
device, decomposed=thestate

Of course, colors are wrong, etc. All the usual caveats. :-)

Cheers,

David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: google earth projections
Next Topic: Filled contours + labels of different color

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

Current Time: Wed Oct 08 16:07:54 PDT 2025

Total time taken to generate the page: 0.00227 seconds