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

Home » Public Forums » archive » Re: Problem with labeling contour lines in IDL
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: Problem with labeling contour lines in IDL [message #65430 is a reply to message #65428] Wed, 04 March 2009 12:34 Go to previous messageGo to previous message
ed.schmahl is currently offline  ed.schmahl
Messages: 11
Registered: October 2008
Junior Member
On Mar 4, 7:10 am, David Fanning <n...@dfanning.com> wrote:
> Nusret Sevin writes:
>> I have a problem with labeling contour lines in IDL:
>> ...
>> Is there a way that I can force IDL to put labels on nonlinear parts?
>
> You have almost no control over contour line labeling
> in IDL direct graphics. If you want control, you are
> going to have to switch to object graphics. If I were
> going to do this, I would start with something like
> XContour, which is very old and needs to be updated,
> but which has many of the parts you will need already
> in place. Perhaps you can update it for the rest of us. :-)
>
>   http://www.dfanning.com/programs/xcontour.pro

Nusret, David,

Maybe I'm doing something different, but this little script in Direct
Graphics seems to produce nonlinear annotation almost correctly:

d=shift(dist(100),50,50)
g=exp(-d^2/400)
c_annotat=['0.1','0.2','0.4','0.8','1.6','3','6','12','25',' 50','98']
lev = max(g)* float(c_annotat)/100.
contour,g,c_annot=c_annotat,lev=lev

The only thing wrong that I can see is that the .98 label doesn't
appear, but all the other contours are labeled properly.

Ed Schmahl


>
> 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
Read Message
Read Message
Read Message
Read Message
Previous Topic: Use of ++ operator to count frequency of an entry (Was: Majority Voting)
Next Topic: Plotting over a lunar map

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

Current Time: Sat Oct 11 20:23:35 PDT 2025

Total time taken to generate the page: 0.80568 seconds