[ncl-talk] Wind Legend offset by using “wmsect ”and can't using the search window in the upper right corner of (most) NCL website pages in China

Adam Phillips asphilli at ucar.edu
Thu Dec 12 16:06:56 MST 2019


Hi Bingxue,
I think you are having a draw/frame issue. Try removing these lines:
      pres             = True
      pres at gsnMaximize = True
      maximize_output(wks,pres)

wmvect will draw the vector on the plot (but not advance the frame). Your
other plot item calls are set to not draw the item
and not advance the frame.The order of plotting calls in your script:

gsn_text_ndc (gsnDraw/gsnFrame = False)
wmvect  (drawn by default)
gsn_csm_xy (gsnDraw/gsnFrame = False)
wmvect (drawn by default)
wmvect (drawn by default)
gsn_csm_xy (gsnDraw/gsnFrame = False)
maximize_output  (all items are drawn and maximized, and the frame is
advanced)

Try removing maximize_output and see if the arrows end up where you expect
them to.
Adam





On Thu, Dec 12, 2019 at 2:17 AM 吴冰雪 <bxuewu at 163.com> wrote:

> Dear  All,
>   Firstly, thanks for Adam's answer again.With regards to searching the
> ncl-talk archives: The archives seem can't get searched by using the
> search window in the upper right corner of (most) NCL website pages in
> China,the answer is that  The requested page could not be found. My friends
> also can't use the search window .
>
>   Secondly,I  try to use a new way draw the legend(the full code in the
> attached "windlegend_offset.ncl ")by using "wmsect" ,but still have a
> little wrong,the little wrong is that while I use the "do i=1,n-1",only
> the first picture legend is ok,and the second picture legend,the third
> picture legend,etc the legend exists at a new offset.(in the attached
> "wind_legend_offset.png ")
>    Thank you in advance!
>
> Bingxue Wu
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>


-- 
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/   303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191212/afd76725/attachment.html>


More information about the ncl-talk mailing list