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 
Return to the default flat view Create a new topic Submit Reply
contours Level drawing problem [message #53340] Tue, 10 April 2007 00:46 Go to previous 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.
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Widget Linking
Next Topic: Re: basic question about graphic devices

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

Current Time: Sat Oct 11 16:35:33 PDT 2025

Total time taken to generate the page: 0.71966 seconds