<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div style="" class="">Hi,<br class="" style=""></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class="">I have problem to output my figure correctly in pdf (only red layer is visible, see below) but everything is fine if i output on screen or in png format. <br class="" style=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">the following pieces of the code shows how i create the plot <br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family:
 HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">;---Construct RGBA colormaps...<br style="" class="">&nbsp; ramp&nbsp;&nbsp; = fspan(0., 1., 255)<br style="" class="">&nbsp; reds&nbsp;&nbsp; = new((/255, 4/), float)<br style="" class="">&nbsp; greens = new((/255, 4/), float)<br style="" class="">&nbsp; blues&nbsp; = new((/255, 4/), float)<br style="" class="">&nbsp; reds&nbsp;&nbsp; = 0<br style="" class="">&nbsp; greens = 0<br style="" class="">&nbsp; blues&nbsp; = 0<br style="" class="">&nbsp; reds(:,0)&nbsp;&nbsp; = ramp<br style="" class="">&nbsp; greens(:,1) = ramp<br style="" class="">&nbsp; blues(:,2)&nbsp; = ramp<br style="" class="">&nbsp;
 reds(:,3)&nbsp;&nbsp; = 1.<br style="" class="">&nbsp; greens(:,3) = 0.<br style="" class="">&nbsp; blues(:,3)&nbsp; = 0. <br></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">wks = gsn_open_wks("pdf","../figures/"+prefix)<br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">&nbsp;<br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">&nbsp;......<br style="" class="">&nbsp;&nbsp;&nbsp; sres@lbLabelBarOn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
 False&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br style="" class="">&nbsp;&nbsp;&nbsp; sres@cnFillMode&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = "RasterFill"<br style="" class="">&nbsp;&nbsp;&nbsp; sres@cnLevelSelectionMode&nbsp; = "EqualSpacedLevels"<br style="" class="">&nbsp;&nbsp;&nbsp; sres@cnMaxLevelCount&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 254<br style="" class="">&nbsp;&nbsp;&nbsp; sres@cnFillBackgroundColor = (/ 1., 1., 1., 1./)<br style="" class="">&nbsp;&nbsp;&nbsp; sres@cnFillColors = greens<br style="" class="">&nbsp;&nbsp;&nbsp; greenMap = gsn_csm_contour(wks, g, sres)<br style="" class="">&nbsp;&nbsp;&nbsp; sres@cnFillColors = blues<br style="" class="">&nbsp;&nbsp;&nbsp; blueMap = gsn_csm_contour(wks, b, sres)</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color:
 transparent; font-style: normal;">&nbsp;&nbsp;&nbsp; sres@cnFillColors&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = reds<br style="" class="">&nbsp;&nbsp;&nbsp; plots(ri,0) = gsn_csm_contour_map(wks, r, sres)<br style="" class="">&nbsp;&nbsp;&nbsp; overlay(plots(ri,0), greenMap)<br style="" class="">&nbsp;&nbsp;&nbsp; overlay(plots(ri,0), blueMap)<br style="" class="">&nbsp;&nbsp;&nbsp; draw(plots(ri,0))<br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">........</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">&nbsp;&nbsp;&nbsp; gsn_merge_colormaps(wks,"MPL_gist_yarg","precip3_16lev")<br style=""
 class="">&nbsp;&nbsp;&nbsp; dres = res&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;up to here: resources for filled contours without thickmarks<br style="" class="">.....</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">&nbsp;&nbsp;&nbsp; plots(ri,1)&nbsp;&nbsp; = gsn_csm_contour_map(wks,pcp,dres)<br style="" class="">&nbsp;&nbsp;&nbsp; plot_w1 = gsn_csm_vector(wks,u,v,vres)<br style="" class="">&nbsp;&nbsp;&nbsp; plot_p&nbsp; = gsn_csm_contour(wks,emi,eres)<br style="" class="">&nbsp;&nbsp;&nbsp; overlay(plots(ri,1), plot_w1)<br style="" class="">&nbsp;&nbsp;&nbsp; overlay(plots(ri,1), plot_p)<br style="" class="">&nbsp;&nbsp;&nbsp; draw(plots(ri,1))<br style="" class="">....</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica
 Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">Is it ncl limitation or i have to do something more?</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">Regards,</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">sk<br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;
 background-color: transparent; font-style: normal;"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""></div></div></body></html>