<div dir="ltr"><div class="gmail_default" style="font-size:small">Geeta,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I'm not sure what you mean by "messy". </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You are setting txPosXF and txPosYF, but these resources are meaningless, because the "gsn_add_text" function has the X and Y positions as part of its argument list, in your case, the "lon" and "lat" arguments:</div><div class="gmail_default" style="font-size:small">
<p class=""> text = <span class="">gsn_add_text</span>(wks,plot,<span class="">sprintf</span>(<span class="">"%9.4g"</span>,rf),lon,lat,txres)</p><p class="">So, you should be trying to change your lon and lat values, and not txPosXF and txPosYF.</p><p class="">If by "messy" you mean that the text string is touching the markers in a couple of places, then there are several things you can do.</p><p class="">One is to simply add some extra spaces before the text strings. You can do this by changing the format in the "sprintf" call to have more fields:</p><p class="">
</p><p class=""> text = <span class="">gsn_add_text</span>(wks,plot,<span class="">sprintf</span>(<span class="">"%11.4g"</span>,rf),lon,lat,txres)</p><p class="">or by adding a space:</p><p class="">
</p><p class=""> text = <span class="">gsn_add_text</span>(wks,plot," " + <span class="">sprintf</span>(<span class="">"%9.4g"</span>,rf),lon,lat,txres)</p><p class="">You can also add a small delta value to the "lon" position:</p><p class="">
</p><p class=""> text = <span class="">gsn_add_text</span>(wks,plot,<span class="">sprintf</span>(<span class="">"%9.4g"</span>,rf),lon+0.1,lat,txres)</p><p class="">--Mary</p><p class=""><br></p><p class=""><br></p>
<p class=""><br></p><p class=""><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 12, 2015 at 11:14 AM, Geeta Geeta <span dir="ltr"><<a href="mailto:geetag54@yahoo.com" target="_blank">geetag54@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"><div><span>Hi. <br></span></div><div><span>I am plotting station rainfall and my data looks like </span></div><div dir="ltr"><span>13.57 77.38 919.6 5.6<br>12.3 78.18 882.2 67.<br>13.06 77.24 900 0.1<br>13.06 77.24 900 0.1<br>~ </span></div><div dir="ltr"><span>The Rf is in the 4th Col and it gets plotted. But when I try to change the position of the text, I am unable to do it. <br></span></div><div dir="ltr"><span>My script is attached and the Figure. </span></div><div dir="ltr"><br><span></span></div><div dir="ltr"><span>essentially, <br></span></div><div dir="ltr"><span> <br></span></div><div dir="ltr"><span> txres@txPosXF = 0.775<br> txres@txPosYF = -5.05<br>; txres@txAngleF = 40.00 </span></div><div dir="ltr"><br><span></span></div><div dir="ltr"><span>Since I am unable to change the above two, my plot looks a little messy. <br></span></div><div dir="ltr"><br><span></span></div><div dir="ltr"><span>can someone suggest???<span class="HOEnZb"><font color="#888888"><br></font></span></span></div><span class="HOEnZb"><font color="#888888"><div dir="ltr"><span></span></div><div> </div><div>Geeta.</div></font></span></div></div><br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>