Re: wmlabs with loop plots

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Apr 21 2014 - 09:41:30 MDT

Jeremy,

The wmxxxx functions are rather limited.

In order to have them draw correctly, try drawing them *after* you draw the plot, and not before.

Did you see some of our examples at:

http://www.ncl.ucar.edu/Applications/weather_sym.shtml

—Mary

On Apr 17, 2014, at 8:27 PM, Jeremy Stephan Pal <jpal@MIT.EDU> wrote:

> 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

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Apr 21 09:41:41 2014

This archive was generated by hypermail 2.1.8 : Tue Apr 29 2014 - 09:04:20 MDT