[ncl-talk] how to locate one table in the same frame with one map plot
Mary Haley
haley at ucar.edu
Wed Jul 27 12:42:09 MDT 2016
Yi Lu,
I misunderstood what you were trying to do with the table.
If you simply want the table and the contour plot to be drawn on the same
frame, then before you draw the contour plot, you need to set the gsnFrame
resource to False:
res at gsnFrame = False
This tells gsn_csm_contour_map not to advance the frame ("page"), and hence
when you draw the table, it will get drawn on the same page.
I've modified your script to do this, and also to resize the table based on
the size and location of your plot. See attached. Of course, you'll
probably want to customize the table further to get the correct size fonts
that you want.
--Mary
On Tue, Jul 26, 2016 at 6:56 PM, 易路 <dg1225033 at smail.nju.edu.cn> wrote:
> Dear Mary,
>
> 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.
>
> 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".
>
> Maybe, I can only use the gsn_csm_blank_plot to show my data as displayed
> in the examples of table_4.ncl
> <http://www.ncl.ucar.edu/Applications/Scripts/table_4.ncl> and table_6.ncl
> <http://www.ncl.ucar.edu/Applications/Scripts/table_4.ncl>, 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.
>
> 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.
>
> Thanks your precious time and attention very much!
>
> Yi Lu
>
>
>
>
>
> 易路
>
> 南大邮件系统/学生/博士生/12级博士生
>
> 南京市汉口路22号
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160727/daf32e1d/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Ts_results.png
Type: image/png
Size: 85020 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160727/daf32e1d/attachment.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ts_picture_mod.ncl
Type: application/octet-stream
Size: 3980 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160727/daf32e1d/attachment.obj
More information about the ncl-talk
mailing list