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

Home » Public Forums » archive » Why the contour does not show?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Why the contour does not show? [message #63877] Fri, 21 November 2008 11:06 Go to previous message
xiao zhang is currently offline  xiao zhang
Messages: 81
Registered: June 2008
Member
Hi~ guys. I have a problem here. I have a small program doing a
contour plot. But is just show me the background, not the data. I
guess there is something wrong with the colors. Can anyone help?
Thanks

lat=fltarr(75)
lon=fltarr(75)

latstep=(34.3842-31.6985)/74.0
lonstep=(121.5581-118.3524)/74.0

for i=0,74 do begin
lat(i)=-31.6985-i*latstep
lon(i)=118.3524+i*lonstep
endfor

print,max(lat),min(lat)
print,max(lon),min(lon)

device,decomposed=0
!p.background = 255
xs=600
ys=600
window,xsize=xs,ysize=ys


contour,inits,color=0,xrange=[min(lon),max(lon)],yrange=[min (lat),max
(lat)],xtitle='longtitude',ytitle='latitude',title='Sensible heat
flux'
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Returning up the stack after error
Next Topic: Nothing to do with IDL

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

Current Time: Fri Oct 10 02:30:19 PDT 2025

Total time taken to generate the page: 0.16223 seconds