[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
Fri Dec 13 14:50:33 MST 2019


Hi Bingxue,
If removing the maximize_output line did not work, try adding a delete(wks)
right before the end do:
 maximize_output(wks,pres)
   delete(txx)
   delete(txy)
   delete(xy_plot)
   delete(xy2_plot)
  delete(wks)
 end do

wmvect and other similar procedures are calls to the WMAP plotting system,
an older graphics package that has limitations.
If the deletion of the workstation does not work,  I am not sure a solution
is possible with the current structure of your script.
In that case, you will likely have to alter the script so that only a
single panel plot is drawn.
Adam


On Fri, Dec 13, 2019 at 12:38 AM 吴冰雪 <bxuewu at 163.com> wrote:

> 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
>
> <http://www.cgd.ucar.edu/staff/asphilli>
>
>
>
>
>


-- 
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/20191213/6d9c98a0/attachment.html>


More information about the ncl-talk mailing list