<div><p>Dear Mary,</p><p>I tried to use gsn_csm_blank_plot to draw the table whic I wanted to attach it under the map plot, but the table was still shown in an other new frame.</p><p>When I use overlay to put the map plot and tabel together, the showed the error "fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot member".</p><p>Maybe, I can only use the gsn_csm_blank_plot to show my data as displayed in the examples of <a style="font: 13.33px/16px verdana, sans-serif; margin: 0px; padding: 0px; text-align: left; color: rgb(133, 45, 133); text-transform: none; text-indent: 0px; letter-spacing: normal; text-decoration: none; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px;" href="http://www.ncl.ucar.edu/Applications/Scripts/table_4.ncl" target="_blank">table_4.ncl</a>&nbsp;and <a style="font: 13.33px/16px verdana, sans-serif; margin: 0px; padding: 0px; text-align: left; color: rgb(133, 45, 133); text-transform: none; text-indent: 0px; letter-spacing: normal; text-decoration: none; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px;" href="http://www.ncl.ucar.edu/Applications/Scripts/table_4.ncl" target="_blank">table_6.ncl</a>, but I need to show the geographical information of the map, so I had to use the gsn_csm_contour_map to generat the first plot.</p><p>So, would you please check the problems for me, why the tabel generated by gsn_csm_blank_plot can't be located uder the plot generated by gsn_csm_cntour_map.</p><p>The input file, script and the output png files have been uploaded to the accessary. Thanks very much for your precious time and attention !</p><p>Yi Lu</p></div><div>&nbsp;</div><div><sign signid="98"><div style="color: rgb(144, 144, 144); font-family: Arial Narrow; font-size: 12px;"><br><br><br><br></div><div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 14px;"><div style="overflow: hidden;"><table class="preview_table"><tbody><tr><td valign="middle"><img id="preview_qrcode" src="https://exmail.qq.com/cgi-bin/setting_qrcode_card?action=qrcode_card&amp;alias=dg1225033@smail.nju.edu.cn&amp;key=33b1e5708e6a55b5"></td><td valign="middle" style="color: rgb(160, 160, 160); font-size: 12px;"><h4 class="name" style="margin: 0px; color: rgb(0, 0, 0); line-height: 28px; font-size: 14px; font-weight: bold; -ms-zoom: 1;">易路</h4><p class="department" style="margin: 0px;">南大邮件系统/学生/博士生/12级博士生</p><p class="addr" style="margin: 0px; color: rgb(160, 160, 160); line-height: 22px;">南京市汉口路22号&nbsp;</p></td></tr></tbody></table></div></div></sign></div><div>&nbsp;</div><div><includetail><div>&nbsp;</div><div>&nbsp;</div><div style="color: rgb(0, 0, 0);"><div style="padding: 2px 0px; font-family: Arial Narrow; font-size: 12px;">------------------&nbsp;Original&nbsp;------------------</div><div style="background: rgb(239, 239, 239); padding: 8px; font-size: 12px;"><div id="menu_sender"><b>From: </b>&nbsp;"Mary Haley"&lt;haley@ucar.edu&gt;;</div><div><b>Date: </b>&nbsp;Mon, Jul 25, 2016 01:17 PM</div><div><b>To: </b>&nbsp;"易路"&lt;dg1225033@smail.nju.edu.cn&gt;; <wbr></div><div><b>Cc: </b>&nbsp;"ncl-talk"&lt;ncl-talk@ucar.edu&gt;; <wbr></div><div><b>Subject: </b>&nbsp;Re: [ncl-talk] how to locate one table in the same frame with one plot</div></div><div>&nbsp;</div><div dir="ltr"><div class="gmail_default" style="font-size: small;">Dear Yi Lu,</div><div class="gmail_default" style="font-size: small;"><br></div><div class="gmail_default" style="font-size: small;">"gsn_table" is a procedure, not a function and it doesn't return a plot object because it doesn't create a singe plot object.&nbsp; Instead, it's just a series of calls to draw text and filled cells on the workstation.</div><div class="gmail_default" style="font-size: small;"><br></div><div class="gmail_default" style="font-size: small;">The "overlay" procedure is meant to be used for plots that share the same data space. Since gsn_table doesn't really have the concept of a data space (i.e, an X and Y axis), you can't overlay it on another plot object.</div><div class="gmail_default" style="font-size: small;"><br></div><div class="gmail_default" style="font-size: small;">I suggest drawing your table using gsn_csm_blank_plot instead, and this way the table will have an X and a Y axis.</div><div class="gmail_default" style="font-size: small;"><br></div><div class="gmail_default" style="font-size: small;">See the table examples at:</div><div class="gmail_default" style="font-size: small;"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/table.shtml">http://www.ncl.ucar.edu/Applications/table.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">and in particular look at examples table_4.ncl and table_6.ncl.</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 24, 2016 at 8:05 AM, 易路 <span dir="ltr">&lt;<a href="mailto:dg1225033@smail.nju.edu.cn" target="_blank">dg1225033@smail.nju.edu.cn</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div>Hi all,</div><div>&nbsp;</div><div>I used the functions of gsn_csm_contour_map and gsn_table to form a plot and a table.&nbsp;To puting them in one frame, I tried to use the function of overlay,&nbsp;but when I set plot2=gsn_table(......), overlay(plot1,plot2), frame(wks), it showed errors of "fatal:syntax error: line 121 in file ts_picture.ncl before or near gsn_table". Will you please check the problem for me? Thanks to all!</div><div>&nbsp;</div><div>the related script are as follows, and the whole script is uploaded&nbsp;to the attachment</div><div>&nbsp;</div><div>;;;;;;;;;;high related script ;;;;;;;;;;;;;;;;;;</div><div>plot=gsn_csm_contour_map(wks,Ts,res)</div><div>;set the table<br>ncr&nbsp; =(/2,5/)<br>x&nbsp;&nbsp;&nbsp; =(/0.1,0.6/)<br>y&nbsp;&nbsp;&nbsp; =(/0.1,0.2/)<br>text =(/ (/"BIAS","FAR","POD","POFD","HSS"/),\ <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (/"0","0","0","0","0"/)/)</div><div>restbl =True<br><a href="mailto:restbl@txFontHeightF" target="_blank">restbl@txFontHeightF</a> =0.03<br><a href="mailto:restbl@gsFillColor" target="_blank">restbl@gsFillColor</a>&nbsp;&nbsp; ="transparent"</div><div>gsn_table(wks,ncr,x,y,text,restbl)</div><div>&nbsp;</div><div>frame(wks)</div><div>&nbsp;</div><div>;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</div><div>Sincerely,</div><div>Yi Lu</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" target="_blank" rel="noreferrer">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>

</div><!--<![endif]--></includetail></div>