<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> 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> </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&alias=dg1225033@smail.nju.edu.cn&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号 </p></td></tr></tbody></table></div></div></sign></div><div> </div><div><includetail><div> </div><div> </div><div style="color: rgb(0, 0, 0);"><div style="padding: 2px 0px; font-family: Arial Narrow; font-size: 12px;">------------------ Original ------------------</div><div style="background: rgb(239, 239, 239); padding: 8px; font-size: 12px;"><div id="menu_sender"><b>From: </b> "Mary Haley"<haley@ucar.edu>;</div><div><b>Date: </b> Mon, Jul 25, 2016 01:17 PM</div><div><b>To: </b> "易路"<dg1225033@smail.nju.edu.cn>; <wbr></div><div><b>Cc: </b> "ncl-talk"<ncl-talk@ucar.edu>; <wbr></div><div><b>Subject: </b> Re: [ncl-talk] how to locate one table in the same frame with one plot</div></div><div> </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. 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"><<a href="mailto:dg1225033@smail.nju.edu.cn" target="_blank">dg1225033@smail.nju.edu.cn</a>></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> </div><div>I used the functions of gsn_csm_contour_map and gsn_table to form a plot and a table. To puting them in one frame, I tried to use the function of overlay, 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> </div><div>the related script are as follows, and the whole script is uploaded to the attachment</div><div> </div><div>;;;;;;;;;;high related script ;;;;;;;;;;;;;;;;;;</div><div>plot=gsn_csm_contour_map(wks,Ts,res)</div><div>;set the table<br>ncr =(/2,5/)<br>x =(/0.1,0.6/)<br>y =(/0.1,0.2/)<br>text =(/ (/"BIAS","FAR","POD","POFD","HSS"/),\ <br> (/"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> ="transparent"</div><div>gsn_table(wks,ncr,x,y,text,restbl)</div><div> </div><div>frame(wks)</div><div> </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>