<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div>Hi Soumik,<div class=""><br class=""></div><div class="">try commenting out this line:</div><div class=""><br class=""></div><div class=""> res@gsnMaximize = True</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div class="">
<div class="">-- <br class="">Alessandra Giannini<br class="">IRI for Climate and Society - The Earth Institute at Columbia University<br class="">P.O. Box 1000, Palisades NY 10964-8000<br class="">phone/fax: +1 845 680-4473/4864 - email: <a href="mailto:alesall@iri.columbia.edu" class="">alesall@iri.columbia.edu</a></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Jun 19, 2017, at 5:23 PM, Soumik Basu <<a href="mailto:sbasu@alaska.edu" class="">sbasu@alaska.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class="">Hello,<br class=""><br class=""></div>I am trying to make a panel plot of 3 figures. But, whenever I am saving it in .pdf format the plots are appearing in landscape orientation. <br class=""><br class=""></div>I tried both @wkOrientation and @gsnPaperOrientation but none of those worked. <br class=""><br class=""></div>I am attaching the plot. Resources for the plot are as follows: <br class=""><br class="">;*************************************************<br class="">; Plot<br class="">;*************************************************<br class=""> res = True <br class=""> res@gsnMaximize = True<br class=""> res@gsnSpreadColors = True <br class="">; res@gsnPolar = "NH"<br class=""> res@gsnDraw = False ; don't draw<br class=""> res@gsnFrame = False ; don't advance frame<br class=""><br class=""> res@cnFillOn = True <br class=""> res@cnLinesOn = False <br class=""> res@cnLevelSelectionMode = "ManualLevels" <br class=""> res@cnMinLevelValF = -5<br class=""> res@cnMaxLevelValF = 5<br class=""> res@cnLevelSpacingF = 0.1<br class=""> res@cnLineLabelsOn = False<br class=""><br class=""> res@lbLabelStride = 50 <br class=""> res@lbOrientation = "horizontal" ;vertical label bar<br class=""> res@lbLabelBarOn = False <br class=""><br class=""> res@tmLabelAutoStride = True<br class=""> res@tmXTOn = False<br class=""> res@tmYROn = False<br class=""> <br class=""> res@mpLimitMode = "LatLon" <br class=""> res@mpMinLatF = 30.<br class=""> res@mpMaxLatF = 90.<br class=""> res@mpMinLonF = 0.<br class=""> res@mpMaxLonF = 150.<br class=""> res@mpCenterLonF = 75<br class=""> res@mpGeophysicalLineThicknessF = 1.5<br class=""><br class=""><br class=""><br class=""> sres = True <br class=""> sres@gsnMaximize = True<br class=""> sres@gsnSpreadColors = True <br class=""> sres@gsnDraw = False ; do not draw the plot<br class=""> sres@gsnFrame = False <br class=""><br class=""> sres@cnFillOn = True <br class=""> sres@cnLinesOn = False<br class=""> sres@cnLevelSelectionMode = "ManualLevels" <br class=""> sres@cnMinLevelValF = 0<br class=""> sres@cnMaxLevelValF = 80<br class=""> sres@cnLevelSpacingF = 5<br class=""> sres@cnLineLabelsOn = False<br class=""><br class=""> sres@lbLabelBarOn = False <br class=""> sres@lbLabelStride = 5 <br class=""> sres@lbOrientation = "horizontal" ;vertical label bar<br class=""><br class=""> sres@tmLabelAutoStride = True<br class=""> sres@tmXTOn = False<br class=""> sres@tmYROn = False<br class=""> <br class=""> sres@mpLimitMode = "LatLon" <br class=""> sres@mpMinLatF = 30.<br class=""> sres@mpMaxLatF = 90.<br class=""> sres@mpMinLonF = 0.<br class=""> sres@mpMaxLonF = 150.<br class=""> sres@mpCenterLonF = 75<br class=""> sres@mpGeophysicalLineThicknessF = 1.5<br class=""><br class=""> <br class="">;*****************************************************<br class="">; Plot<br class="">;*****************************************************<br class=""> plot1 = new(1,graphic) <br class=""><br class=""> wks = gsn_open_wks("x11","cyclone_density_diff_all_model") <br class="">; wks@wkOrientation = "potrait" <br class=""> gsn_define_colormap(wks,"sunshine_9lev") <br class=""><br class=""> plot1(0) = gsn_csm_contour_map_ce(wks,den_mean_ensemble,sres)<br class=""><br class=""> ;***************************************<br class="">; panel first plot<br class="">;***************************************<br class=""> pres1 = True<br class=""> pres1@gsnPanelLabelBar = True ; common label bar<br class=""> pres1@gsnFrame = False ; don't advance frame yet<br class=""> pres1@gsnPanelFigureStrings = (/"HIST"/)<br class=""><br class=""> pres1@lbOrientation = "vertical" ; vertical label bar<br class=""> pres1@lbBoxLinesOn = False<br class=""><br class="">; we use PanelBottom to tell the plot to only draw in the top part of the page.<br class="">; since there are two plots here, and we have limited the plot to the upper<br class="">; 0.4 of the page, each plot will have a size 0.3.<br class=""><br class=""> pres1@gsnPanelBottom = 0.7 ; move bottom up from 0.0 to 0.6<br class="">; pres1@gsnPaperOrientation = "potrait" <br class=""><br class=""> pres1@gsnPanelFigureStringsBackgroundFillColor = -1<br class=""> pres1@amJust = "TopRight"<br class=""><br class=""> gsn_panel(wks,plot1,(/1,1/),pres1)<br class=""><br class="">;**************************************<br class="">; panel next two plots<br class="">;**************************************<br class=""> plot = new(2,graphic) <br class=""><br class=""> gsn_define_colormap(wks,"BlueWhiteOrangeRed")<br class=""> <br class=""> plot(0) = gsn_csm_contour_map_ce(wks,den_diff_ensemble1,res)<br class=""> <br class=""> plot(1) = gsn_csm_contour_map_ce(wks,den_diff_ensemble,res)<br class=""><br class=""> pres2 = True<br class=""> pres2@gsnPanelLabelBar = True ; common label bar<br class=""> pres2@lbLabelStride = 10 <br class=""> pres2@gsnPanelTop = 0.7 ; draw up to the bdry of upper plot<br class=""> pres2@gsnPanelBottom = 0.1 ; move bottom up so size is 0.3<br class=""> pres2@gsnFrame = False ; don't advance frame yet<br class=""><br class=""><br class=""> pres2@gsnPanelFigureStrings = (/"RCP4.5 - HIST","RCP8.5 - HIST"/)<br class=""> pres2@gsnPanelFigureStringsBackgroundFillColor = -1<br class=""><br class=""> pres2@amJust = "TopRight"<br class=""><br class=""> pres2@lbOrientation = "vertical" ; vertical label bar<br class=""> pres2@lbBoxLinesOn = False<br class=""><br class=""> gsn_panel(wks,plot,(/2,1/),pres2)<br class=""><br class="">; now advance frame for all plots<br class=""><br class=""> frame(wks)<br class=""> <br class=""> end<br class=""><br class=""></div>Thank you in advance for any help. <br class=""><br class=""></div>Thanks,<br class=""></div>Soumik<br clear="all" class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><br class="">-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div class="">-- </div><div class="">"Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning." - Albert Einstein</div><div class=""><br class=""></div><div class="">**************************************************************************************************</div><div class="">Dr. Soumik Basu</div><div class="">Post Doctoral Fellow, International Arctic Research Center, UAF, Fairbanks, AK, USA</div><div class="">Nanjing University of Information Science and Technology, Nanjing, China</div><div class="">PhD in Atmospheric Sciences</div><div class="">M.Sc. in Atmospheric Sciences</div><div class="">Email: <a target="_blank" href="mailto:suvro05@gmail.com" class="">suvro05@gmail.com</a></div><div class="">website: <a target="_blank" href="http://soumikbasu.weebly.com/" class="">http://soumikbasu.weebly.com/</a></div><div class=""><br class=""></div><div class="">***************************************************************************************************</div></div></div></div>
</div></div></div></div></div></div></div></div>
<span id="cid:CF4AF934-B5DD-4D3F-85A6-9D9035C10652@columbia.edu"><cyclone_density_diff_all_model.pdf></span>_______________________________________________<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="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""></div></body></html>