[ncl-talk] 回复: no value at the equator and additional line using gsn_add_polygon

刘振 286909655 at qq.com
Fri Oct 13 12:25:25 MDT 2017


Hi -,


  Thanks for your reply. But for the second question, if you look at the Figure 2 in detail, I want to shading the one standard deviation of the red line. But I want to delete the addition red line from the start point to end point. So the function gsn_add_polyline may not satisfy my requirement. Is there any other solutions? Thanks.


Best regards,
zhen


------------------
刘振
 中山大学
环境科学与工程学院
大气科学系
Phone: +86-15013246049
 Liu  Zhen
 Department of Atmospheric Science
School of Environmental Science and Engineering
 Sun Yat-sen University
Email address: liuzhen9 at mail2.sysu.edu.cn 


 




------------------ 原始邮件 ------------------
发件人: "Alan Brammer";<abrammer at albany.edu>;
发送时间: 2017年10月14日(星期六) 凌晨2:03
收件人: "刘振"<286909655 at qq.com>;
抄送: "ncl-talk"<ncl-talk at ucar.edu>; 
主题: Re: [ncl-talk] no value at the equator and additional line using gsn_add_polygon



> why there is a white line over the equator? How to remove it?

You mean Greenwich Meridian?   
https://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnAddCyclic

You set this resource to false, therefore NCL did not bridge the gap. 
 Near the top of your res file:
>   res at gsnAddCyclic          = False  ; data already has cyclic point





>  For All_F in red shading line, why there is a addition red line connect from the beginning to the end. I found it seems to be a problem with gsn_add_polygon function I used. 



It's trying to draw a polygon (i.e. a closed shaped), the docs clearly state that if first and last points are not equal then the function will close the shape for you.  If you just want a line, then draw a polyline. 
https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_polyline.shtml





> The third question is how can I add more space between legend labels vertically (i.e. All_F and Aero) in Figure 2?

https://www.ncl.ucar.edu/Applications/legend.shtml

Starting point is probably the resource pmLegendHeightF lots of examples of legend layout though. 




Documentation, the user guide and google for old ncl-talk emails will go a long way. 
https://www.ncl.ucar.edu/Document/



Good luck, 








On Fri, Oct 13, 2017 at 1:13 PM, 刘振 <286909655 at qq.com> wrote:
Dear Sir/Madam:


  Attached please find my script and figures. I got three questions about the figures.
  Figure 1: why there is a white line over the equator? How to remove it?
  Figure 2: For All_F in red shading line, why there is a addition red line connect from the beginning to the end. I found it seems to be a problem with gsn_add_polygon function I used. How to remove this line? 
  The third question is how can I add more space between legend labels vertically (i.e. All_F and Aero) in Figure 2?
  Look forward to your replies. Thanks.


Best regards,
zhen


------------------
刘振
 中山大学
环境科学与工程学院
大气科学系
Phone: +86-15013246049
 Liu  Zhen
 Department of Atmospheric Science
School of Environmental Science and Engineering
 Sun Yat-sen University
Email address: liuzhen9 at mail2.sysu.edu.cn 


 

_______________________________________________
 ncl-talk mailing list
 ncl-talk at ucar.edu
 List instructions, subscriber options, unsubscribe:
 http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171014/69c97ca2/attachment.html>


More information about the ncl-talk mailing list