Hi,
I met a strange problem which can not draw polylines on panel plots.
I draw polylines in seperate plot and panel them with "gsn_panel", but what I get is just the last plot draw polyline in the panel.
The scripts is as following:
;----------------------------------------------------
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
begin
fi = addfile("./slp.1963.nc","r") ;By the way, the dataset used here is
;http://www.ncl.ucar.edu/Applications/Data/cdf/slp.1963.nc
slp=fi->slp
printVarSummary(slp)
wks = gsn_open_wks("x11","t")
plot=new(2,graphic)
res = True
res_at_gsnDraw = False
res_at_gsnFrame = False
do i=0,1
plot(i) = gsn_csm_contour(wks,slp(0,:,:),res)
ypts = (/ 0, 0 /)
xpts = (/ 0, 60/)
resp = True ; polyline mods desired
resp_at_gsnDraw = False
resp_at_gsnFrame = False
resp_at_gsLineColor = "red" ; color of lines
resp_at_gsLineThicknessF = 2.0 ; thickness of lines
resp_at_gsLineLabelString= "test" ; adds a line label string
dum=gsn_add_polyline(wks,plot(i),xpts(0:1),ypts(0:1),resp)
end do
resPa = False
gsn_panel(wks,plot(0:1),(/2,1/),resPa)
end
;------------------
Any advice is apreciated.
Best wishes,
Li
2008-10-21
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Oct 21 2008 - 03:25:46 MDT
This archive was generated by hypermail 2.2.0 : Wed Oct 22 2008 - 13:49:07 MDT