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

Home » Public Forums » archive » contours Level drawing problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
contours Level drawing problem [message #53340] Tue, 10 April 2007 00:46 Go to next message
vinesh is currently offline  vinesh
Messages: 5
Registered: May 2005
Junior Member
Dear All,

I am facing a strange probelm with drawing the contours and specially
with Contours Level using LEVELS and C_LEVELS. I am drawing contours
using follwing code:
xlon=lon
xlat=lat
; Grid the data.
Triangulate, xlon, xlat, triangles
gridData = TriGrid(lon, lat, values, triangles,
[1.50,1.50])
bout = [min(lon), min(lat), max(lon), max(lat)]

; Calculate xlon and ylat vectors corresponding to
gridded data.
s = SIZE(gridData)
zlon = FINDGEN(s(1))*((bout(2) - bout(0))/
(s(1)-1)) + bout(0)
ylat = FINDGEN(s(2))*((bout(3) - bout(1))/
(s(2)-1)) + bout(1)


Contour, gridData, zlon, ylat, C_CHARTHICK=1.4,/OVERPLOT,
C_Colors=ccolors, $
Levels=con_levels, C_Label=Replicate(1,nlevels+1)


This code works fine on images but sometime it creates problem in
displaying the level in innermost contour surrounded by other levels.
For instance, i have created contours of level 10. It will create
different contours on the levels 20,10,0. It will labels the contour
level for 20,10 and 0 and display the levels on 20,10 but it does not
show label to 0 that will be innermost circle. Please guide how can i
resolve this.
Re: contours Level drawing problem [message #53486 is a reply to message #53340] Tue, 10 April 2007 07:38 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
vineshgautam@gmail.com writes:

> This code works fine on images but sometime it creates problem in
> displaying the level in innermost contour surrounded by other levels.
> For instance, i have created contours of level 10. It will create
> different contours on the levels 20,10,0. It will labels the contour
> level for 20,10 and 0 and display the levels on 20,10 but it does not
> show label to 0 that will be innermost circle. Please guide how can i
> resolve this.

I'm going to guess here. Make your display window bigger. :-)

You do not have complete control over which contours get
labelled. The algorithm that is used requires that contours
have some minimum "size" that will permit labelling. Most
often, contours that do not get labelled, even when they
are told to, do not meet the minimum size requirement.
Making the output larger sometimes helps.

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Widget Linking
Next Topic: Re: basic question about graphic devices

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

Current Time: Fri Oct 10 10:37:39 PDT 2025

Total time taken to generate the page: 1.67893 seconds