[ncl-talk] how to locate one table in the same frame with one plot

易路 dg1225033 at smail.nju.edu.cn
Sun Jul 24 08:05:17 MDT 2016


Hi all,
 
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!
 
the related script are as follows, and the whole script is uploaded to the attachment
 
;;;;;;;;;;high related script ;;;;;;;;;;;;;;;;;;
plot=gsn_csm_contour_map(wks,Ts,res)
;set the table
ncr  =(/2,5/)
x    =(/0.1,0.6/)
y    =(/0.1,0.2/)
text =(/ (/"BIAS","FAR","POD","POFD","HSS"/),\ 
         (/"0","0","0","0","0"/)/)
restbl =True
restbl at txFontHeightF =0.03
restbl at gsFillColor   ="transparent"
gsn_table(wks,ncr,x,y,text,restbl)
 
frame(wks)
 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Sincerely,
Yi Lu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160724/060ac51d/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ts_picture_333.ncl
Type: application/octet-stream
Size: 4246 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160724/060ac51d/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Ts_results.000001.png
Type: application/octet-stream
Size: 60861 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160724/060ac51d/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Ts_results.000002.png
Type: application/octet-stream
Size: 20754 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160724/060ac51d/attachment-0002.obj 


More information about the ncl-talk mailing list