[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

吴冰雪 bxuewu at 163.com
Fri Dec 13 00:38:32 MST 2019


Dear all ,
    Thans for Adam's  prompt reply.But I it still can't work out ,I have removed these lines:
      pres             = True    
      pres at gsnMaximize = True  
      maximize_output(wks,pres)
But the pictures are still the same as no removing the lines.So I guess it may be the second picture and the third picture  wmvect  ( drawn the legend one) 
have use the x axis and y axis to determine where they draw insteading of using NDC coordinate.


However,I don't know how to figure it out.


Thanks.


Bingxue Wu




At 2019-12-13 07:06:56, "Adam Phillips" <asphilli at ucar.edu> wrote:

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191213/2796fd2e/attachment.html>


More information about the ncl-talk mailing list