<!-- $iGENUS: igenus/templates/blue/_send_mail.tpl.html,v 1.7 2006/01/20 03:44:27 dengxuan Exp $ -->
<HTML>
<HEAD>
<TITLE></TITLE>
<META http-equiv='content-type' content='text/html; charset=gb2312'>
<STYLE TYPE='TEXT/CSS'>
<!--
body { color:#2867AE; font-size: 12px; line-height: 120%}
a {color:#999999;}
a:hover {color:0000FF}
div { color:#000000; font-size: 14px; line-height: 150%}
.sign { color:#CCCCCC; font-size: 12px; line-height: 120%}
.usersign { color:#2867AE; font-size: 12px; line-height: 120%}
-->
</STYLE>
</HEAD>
<BODY bgcolor='#FFFFFF' text='#000000'>
<DIV>hi,
<BR>
<BR>
I need to make a 1x2 panel plot and insert the plot into my
<BR>
LaTeX file using a "landscape" orientation. Obviously, a 1x2 panel plot
<BR>
will not fit in an A4 paper (the 1x2 plot is quite short. There is too much
<BR>
blank above and below the plot).
<BR>
<BR>
So I want to change the page size of the output PDF to fit a 1x2 panel
<BR>
correctly. However, there is no change in the output.
<BR>
My corresponding codes are as follows:
<BR>
<BR>
...
<BR>
...
<BR>
...
<BR>
wks = gsn_open_wks("pdf", "test")
<BR>
<BR>
res@gsnDraw = False
<BR>
res@gsnFrame = False
<BR>
<BR>
plot1 = gsn_csm_contour_map(wks, T(1,:,:),res)
<BR>
plot2 = gsn_csm_contour_map(wks, T(2,:,:),res)
<BR>
<BR>
a4_height = 29.7
<BR>
a4_width = 10 ; make it a little narrow
<BR>
cm_per_inch = 2.54
<BR>
panelres = True
<BR>
panelres@gsnPaperWidth = a4_width/cm_per_inch
<BR>
panelres@gsnPaperHeight = a4_height/cm_per_inch
<BR>
panelres@gsneaperMargin = 0.1
<BR>
panelres@gsnMaximize = True
<BR>
panelres@gsnPaperOrientation = "landscape"
<BR>
gsn_panel(wks, (/plot1, plot2/),(/1,2/), panelres)
<BR>
...
<BR>
<BR>
The PDF has been created but when I browse it with Acrobat Reader,
<BR>
the page is still a 21cmx27cm one. And there is still too much
<BR>
blank in either vertical side.
<BR>
<BR>
I think this should be a common problem when one try
<BR>
to insert NCL plot into a document (ie TeX one)
<BR>
Can this page size be changed?
<BR>
<BR>
Thank you very much!
<BR>
<BR>
Xie Xin
<BR>
</DIV>
<br />
申请Gmail博客,赢取精美礼品!
<BR>
详情 请访问Gmail.cn首页
</BODY>
</HTML>