<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title></title><style type="text/css">.felamimail-body-blockquote {margin: 5px 10px 0 3px;padding-left: 10px;border-left: 2px solid #000088;} </style></head><body><div>Hello</div><div><br></div><div>I am plotting panel figures in NCL which result in a very large pdf output size (2.3 MB).</div><div>Attached below is the script i use , only the plotting resources are shown.</div><div><br></div><div>I would be grateful if someone could advice on drastically reducing the size of these pdf outputs because, upon importing them into word, they crash the word document.</div><div><br></div><div><br>;==================================================================<br>;Here is a section of my code that draws a color fill plot<br>;====================================================================<br><br> wks = gsn_open_wks("pdf","all_evap")<br><br> gsn_define_colormap(wks,"wgne15")<br><br> ;also can use precip4_diff_19lev.rgb , precip_diff_12lev.rgb precip3_16lev.rgb precip4_11lev.rgb precip2_17lev.rgb wgne15<br><br> res = True<br><br> res@cnFillOn = True ; turn on color fill<br> ;res@gsnSpreadColors = True ; use full colormap<br><br> res@cnLinesOn = False ; turn off contour lines<br> res@cnLevelSelectionMode = "ManualLevels" ; set manual contour levels<br> res@cnMinLevelValF = 0 ; set min contour level<br> res@cnMaxLevelValF = 4 ; set max contour level<br> res@cnLevelSpacingF = 0.5 ; set contour spacing<br><br> res@gsnDraw = False ; Do not draw plot<br> res@gsnFrame = False ; Do not advance frome<br> res@lbLabelBarOn = False ; turn off individual label bars<br> res@tiMainString = " "<br><br> res@gsnCenterString = " "<br> res@gsnLeftString = " "<br> res@gsnRightString = " "<br> res@cnRasterModeOn = True ; Raster mode shows grid cells<br><br><br> minlat = 25. ; min lat to mask<br> maxlat = 80. ; max lat to mask<br> minlon = -10. ; min lon to mask<br> maxlon = 110. ; max lon to mask<br><br> res@mpProjection = "LambertConformal" ; choose projection<br><br>;---masked plot<br> res@gsnAddCyclic = True ; regional plot<br><br> res@mpMinLatF = minlat ; min lat to mask<br> res@mpMaxLatF = maxlat ; max lat to mask<br> res@mpMinLonF = minlon ; min lon to mask<br> res@mpMaxLonF = maxlon ; max lon to mask<br><br> res@gsnMaskLambertConformal = True ; turn on lc masking<br> <br>;==================================Create arrays to hold series of plots<br> plot = new(9,graphic) <br><br> res@gsnCenterString = "a) PI"<br> res@gsnStringFontHeightF = 0.017<br> plot(0) = gsn_csm_contour_map(wks,aveX,res)<br><br> res@gsnCenterString = "b) 9 kyr"<br> plot(1) = gsn_csm_contour_map(wks,aveY,res)<br><br> res@gsnCenterString = "c) LIG"<br> plot(2) = gsn_csm_contour_map(wks,aveY8,res)<br><br> res@gsnCenterString = "d) 15.2 kyr"<br> plot(3) = gsn_csm_contour_map(wks,aveY2,res)<br><br> res@gsnCenterString = "e) LGM"<br> plot(4) = gsn_csm_contour_map(wks,aveY4,res)<br><br> res@gsnCenterString = "f) 35 kyr"<br> plot(5) = gsn_csm_contour_map(wks,aveY6,res)<br><br> res@gsnCenterString = "g) HE1"<br> plot(6) = gsn_csm_contour_map(wks,aveY3,res)<br><br> res@gsnCenterString = "h) LGM HE"<br> plot(7) = gsn_csm_contour_map(wks,aveY5,res)<br><br> res@gsnCenterString = "i) HE4"<br> plot(8) = gsn_csm_contour_map(wks,aveY7,res)<br><br> printVarSummary(plot)<br><br> ;add_lc_labels(wks,plot,minlat,maxlat,minlon,maxlon) ; attach latitude labels<br><br>;=====================================Attach the polylines<br> ADD_SHAPEFILE_OUTLINES = True<br> sname = "Caspian_Basin.shp"<br><br> pres = True<br> pres@gsLineColor = "black"<br> pres@gsLineThicknessF = 2.0 ; 3x thickness<br><br> shp1 = gsn_add_shapefile_polylines(wks,plot,sname,pres) <br> printVarSummary(shp1)<br><br>;==================================<br>; panel resources for the 4 plots<br>;==================================<br> pres1 = True ; modify the panel plot<br> pres1@gsnPanelLabelBar = True ; common label bar<br><br> pres1@lbBoxEndCapStyle = "TriangleBothEnds"; Added in NCL V6.4.0<br> ;pres1@gsnMaximize = True ; large format in landscape<br><br> pres1@lbTitleString = "Evaporation [ mm/day ]" ; title string<br> pres1@lbTitlePosition = "bottom" ; title position<br> pres1@lbTitleFontHeightF = .012 ; make title smaller<br> pres1@pmLabelBarOrthogonalPosF =-0.01 ;-- move the labelbar upward<br> pres1@lbTitleDirection = "Across" ; title direction<br> pres1@lbLabelFontHeightF = 0.01<br> ;pres1@gsnPanelBottom = 0.01<br><br> gsn_panel(wks,plot,(/3,3/),pres1)<br><br><br>end<br></div></body></html>