<html><head><meta http-equiv="Content-Type" content="text/html charset=gb2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thank you for the reply! I’ve just tried these 3 line scripts just before sending the mail.<div class=""><br class=""></div><div class="">And here below is what I got.</div><div class=""><br class=""></div><div class="">
<div class="page" title="Page 1">
<img alt="page1image256" width="612" height="750" apple-inline="yes" id="DEC4EF79-ECF8-4C11-B0C3-60A2BD203E08" apple-width="yes" apple-height="yes" src="cid:1341929C-9EF1-4B8C-9C95-FAEACED0B1B3" class="">
</div><div class="page" title="Page 1"><br class=""></div><div class="page" title="Page 1">So you can see the problem was not resolved. </div><div class="page" title="Page 1"><br class=""></div><div class="page" title="Page 1">I write my scripts in referring to the example 20 in the page of “Panel plot” (<a href="http://www.ncl.ucar.edu/Applications/panel.shtml" class="">http://www.ncl.ucar.edu/Applications/panel.shtml</a>)</div><div class="page" title="Page 1"><br class=""></div><div class="page" title="Page 1">The related lines in the panel_20.ncl were as below:</div><div class="page" title="Page 1"><br class=""></div><div class="page" title="Page 1"> xy0 = gsn_csm_xy (wks,u&lat,u(0,:,{82}),xyres) ; create plot</div><div class="page" title="Page 1"> xy1 = gsn_csm_xy (wks,u&lat,u(1,:,{82}),xyres) ; create plot</div><div class="page" title="Page 1"> cn0 = gsn_csm_contour_map(wks,u(0,:,:),cnres)</div><div class=""><div class=""> cn1 = gsn_csm_contour_map(wks,u(1,:,:),cnres)</div><div class=""><div class=""> psres = True </div><div class=""> maximize_output(wks,sprees)</div></div><div class=""><br class=""></div><div class="">So i don’t understand why they can work in the example but not in my sctpts? In fact, I was often puzzled by the vp resource or resizing problem as you mentioned,</div><div class="">could you give me some more introduction or advice? </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks!</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Lin</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">在 2017年11月1日,00:22,Mary Haley <<a href="mailto:haley@ucar.edu" class="">haley@ucar.edu</a>> 写道:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="gmail_default" style="font-size: small;">I think it's your maximize_output call that is the problem. This function will maximize the size of all plots on that particular frame so they are as large as possible. You don't want to call this, because you went through the trouble of resizing the plots yourself.</div><div class="gmail_default" style="font-size: small;"><br class=""></div><div class="gmail_default" style="font-size: small;">I suggest not calling maximize_output and instead calling draw and frame:</div><div class="gmail_default" style="font-size: small;"><br class=""></div><div class="gmail_default" style="font-size: small;">draw(hov1)</div><div class="gmail_default" style="font-size: small;">draw(cn1)</div><div class="gmail_default" style="font-size: small;">frame(wks)</div><div class="gmail_default" style="font-size: small;"><br class=""></div><div class="gmail_default" style="font-size: small;">--Mary</div><div class="gmail_default" style="font-size: small;"><br class=""></div><div class="gmail_default" style="font-size: small;"><br class=""></div></div><div class="gmail_extra" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""><div class="gmail_quote">On Tue, Oct 31, 2017 at 8:11 AM, 林祥<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:xianglin72@icloud.com" target="_blank" class="">xianglin72@icloud.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;">Hi , all<br class=""><br class=""> <span class="Apple-converted-space"> </span>I want to plot 2 figure and place them like this below<br class=""><br class=""><br class=""><br class=""><br class=""><br class="">And I use the following related scripts:<br class=""><br class="">“ ….<br class=""> res@vpXF = 0.08<br class=""> res@vpYF = 0.9<br class=""> res@vpWidthF = 0.6<br class=""> res@vpHeightF = 0.3<br class=""><br class=""> <span class="Apple-converted-space"> </span>hov1 = gsn_csm_hov( wks, yc1, res )<br class=""><br class=""> <span class="Apple-converted-space"> </span>res3@vpXF = 0.08<br class=""> <span class="Apple-converted-space"> </span>res3@vpYF = 0.5<br class=""> <span class="Apple-converted-space"> </span>;res3@vpKeepAspect = True<br class=""> <span class="Apple-converted-space"> </span>res3@mpShapeMode ="FreeAspect"<br class=""> <span class="Apple-converted-space"> </span>res3@vpWidthF = 0.6<br class=""> <span class="Apple-converted-space"> </span>res3@vpHeightF = 0.2<br class=""><br class=""> cn1 = gsn_csm_contour_map_ce(wks, zc1, res3)<br class=""><br class=""> <span class="Apple-converted-space"> </span>maximize_output(wks, True)<br class=""><br class="">… "<br class=""><br class="">However, I got this as below, I try many time to modify the values of vpXF, vpYF, vpWidthF, vpHeightF,<br class=""><br class="">but still can not get the proper result. Anyone can give me some advise?<br class=""><br class="">btw, I also attach my script file .<br class=""><br class=""><br class=""><br class="">Thanks!<br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class="">______________________________<wbr class="">_________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/<wbr class="">mailman/listinfo/ncl-talk</a></blockquote></div></div></div></blockquote></div><br class=""></div></div></body></html>