Hello,
I am trying to plot weather symbols (arrows) on multiple plots using a loop. The arrows appear on the first plot, but do not on subsequent plots. A somewhat similar post back in 2007 indicated that it may be a problem related to memory and a work around is to delete the plot (http://www.ncl.ucar.edu/Support/talk_archives/2007/0210.html). Unfortunately, deleting the plot does not work for me. The relevant portion of my script appears below. I have also tried deleting wks and making unique names for wks and plot with no success.
Any help is much appreciated!
Thanks,
Jeremy
...
do istation=0,nstation-1
blah blah blah
wks = gsn_open_wks ("X11",fname)
wmlabs(wks,0.445,0.78,"Arrow")
res = True
res@gsnDraw = False
res@gsnFrame = False
blah blah blah
plot0 = gsn_csm_xy(wks,time_ref,var_mprf,res)
blah blah blah
draw(plot0)
frame(wks)
blah blah blah
if (isdefined("plot0")) then delete(plot0) end if
end do
...
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Apr 17 20:27:27 2014
This archive was generated by hypermail 2.1.8 : Tue Apr 29 2014 - 09:04:20 MDT