contours Level drawing problem [message #53340] |
Tue, 10 April 2007 00:46  |
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.
|
|
|