<div style="line-height:1.7;color:#000000;font-size:10px;font-family:Arial"><div>Hi Adam,</div><div> I use option 1 to draw a vector. It is helpful in some case. However, I came up with some problem related to option 1. </div><br><div>Hi Adam,</div><div> Thank you for help. I follow your suggestion to draw a vector using option #1, and found that option #1 was helpful for me in some case. However, I came up with some problems related to option #1. I want the vector is start from the center point (0,0). When the txAngle=0, the vector is what I want. However, when the txAngle = 45, I cann't make the vector start from the point (0,0), no matter what value is set for txJust. Do you know how to make the vector start from the point (0,0) in any txAngle? Thank you! </div><div><br></div><div><div>txres = True</div><div> txres@txFont = "math_symbols"</div><div><span style="font-size: 10px; line-height: 1.7;"> txres@txJust = "CenterLeft" </span></div><div> txres@txFontColor = "white"</div><div> </div><div> txres@txAngleF = 0 </div><div> txres@txFontHeightF = height(0)</div><div> dumy1 = gsn_add_text(wks,plot1,"o",0,0,txres)</div><div><br></div><div> txres@txJust = "BottomLeft"</div><div> txres@txAngleF = 45 </div><div> txres@txFontHeightF = height(0)</div><div> dumy2 = gsn_add_text(wks,plot2,"o",0,0,txres)</div></div><img src="cid:75143ef4$2$15bf5907221$Coremail$wenguanhuan$163.com" orgwidth="978" orgheight="1265" data-image="1" style="width: 978px; height: 1265px; border: none;"><br><br><div style="position:relative;zoom:1">--<br><div>Best regards,</div><div>Guanhua</div><div style="clear:both"></div></div><div id="divNeteaseMailCard"></div><br>At 2017-05-11 04:12:47, "Adam Phillips" <asphilli@ucar.edu> wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div dir="ltr">Hello,<div>I see three possibilities:</div><div>1) Change to say Font Table 18 and draw a character using gsn_text (or some other NCL gsn*text function).</div><div>2) Create 2 empty arrays (with the exception of one point) that contain the u and v information of your proposed arrow, and use gsn_csm_vector to create the single vector. </div><div>3) Use Illustrator or some other external package to add the arrow.</div><div><br></div><div>Option 2 seems like it would involve too much work. I have attached a script that shows how to do option #1. I started off with the first example on the Color Fill Applications page here:</div><div><a href="http://www.ncl.ucar.edu/Applications/color.shtml#ex1">http://www.ncl.ucar.edu/Applications/color.shtml#ex1</a><br></div><div>and modified it to add a single vector, using the Font Table #18:</div><div><a href="http://www.ncl.ucar.edu/Document/Graphics/Images/font18.png">http://www.ncl.ucar.edu/Document/Graphics/Images/font18.png</a><br></div><div>and the arrow drawn by specifying the "o" character. Note that you will need to play a bit with the txres resources to get the angle, size, and thickness of the arrow to where you want it: </div><div><a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/tx.shtml">https://www.ncl.ucar.edu/Document/Graphics/Resources/tx.shtml</a><br></div><div><br></div><div>Hope that helps. If you have any further questions please respond to the ncl-talk email list.</div><div>Adam</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 9, 2017 at 6:48 PM, wen <span dir="ltr"><<a href="mailto:wenguanhuan@163.com" target="_blank">wenguanhuan@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:10px;font-family:Arial"><div>Hi all,</div><div> I am trying to draw a vector over one area, similar with the figure bellow. But I have not found the example on the official website. Is there anybody knowing how to draw it? Please tell me. Thank you!</div><div><br></div><div><div>
<img></div></div><div> <img src="cid:656e1da$1$15bf5907221$Coremail$wenguanhuan$163.com" style="font-size:10px;line-height:1.7;width:634px;height:504px"></div><div><img></div><div>
<img></div><div style="zoom:1">--<br><div>×£ºÃ</div>
<div>ιڻ·</div><div style="clear:both"></div></div></div><br><br><span title="neteasefooter"><p> </p></span><br>______________________________<wbr></wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr></wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div>
</blockquote></div><br><br><span title="neteasefooter"><p> </p></span>