<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" style=""><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" style=""><br></div><div class="gmail_default" style="">and in particular look at examples table_4.ncl and table_6.ncl.</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">--Mary</div><div class="gmail_default" style=""><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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>