<div dir="ltr"><div><div>Hi,<br><br></div>There&#39;s probably a couple of ways to do this.  gsn_add_text allows you to add and position text in the coordinate space of the data:<br><br><a href="http://ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_text.shtml">http://ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_text.shtml</a><br><br><br></div><div>In the example script you referenced, you&#39;d want to make this call before the call to &quot;draw(map)&quot; for plot 3.<br><br>Alternatively, you can position the text in normalized-device-coordinate space (NDC-space) using gsn_text_ndc():<br><br><a href="http://ncl.ucar.edu/Document/Graphics/Interfaces/gsn_text_ndc.shtml">http://ncl.ucar.edu/Document/Graphics/Interfaces/gsn_text_ndc.shtml</a><br><br></div><div>Look in particular at how the nested domain&#39;s outline was drawn *on top of* plot3 using NDC coordinates:<br><pre>; PLOT 3
  draw(map)   ; domain 2 already overlaid here - so just draw again
  xbox = (/lon2(0,0),lon2(0,nx2),lon2(ny2,nx2),lon2(ny2,0),lon2(0,0)/)
  ybox = (/lat2(0,0),lat2(0,nx2),lat2(ny2,nx2),lat2(ny2,0),lat2(0,0)/)
  datatondc(map, xbox, ybox, xbox_out, ybox_out)
  gsn_polyline_ndc(wks, xbox_out, ybox_out, lnres)<br><br></pre><pre>Hope that helps...<br></pre><pre>Rick<br></pre><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 31, 2015 at 8:35 PM, LI Qi <span dir="ltr">&lt;<a href="mailto:liqi123sh@qq.com" target="_blank">liqi123sh@qq.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hello NCL community,</div><div><br></div><div>I was wondering how to add strings like d01 and d02 in the top-left corner of each domain separately.</div><div><br></div><div>The plot of nested domains is shown below.</div><div>( <a href="http://www2.mmm.ucar.edu/wrf/OnLineTutorial/Graphics/NCL/Examples/EXPERIMENTAL/wrf_overlay_doms.htm" target="_blank">http://www2.mmm.ucar.edu/wrf/OnLineTutorial/Graphics/NCL/Examples/EXPERIMENTAL/wrf_overlay_doms.htm</a> )<span style="line-height:0px">‍</span></div><div><br></div><div><img src="http://www2.mmm.ucar.edu/wrf/OnLineTutorial/Graphics/NCL/Examples/EXPERIMENTAL/wrf_overlay_doms-2.png"><span style="line-height:0px">‍</span></div><div><br></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>