<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=""> ramp = fspan(0., 1., 255)<br style="" class=""> reds = new((/255, 4/), float)<br style="" class=""> greens = new((/255, 4/), float)<br style="" class=""> blues = new((/255, 4/), float)<br style="" class=""> reds = 0<br style="" class=""> greens = 0<br style="" class=""> blues = 0<br style="" class=""> reds(:,0) = ramp<br style="" class=""> greens(:,1) = ramp<br style="" class=""> blues(:,2) = ramp<br style="" class="">
reds(:,3) = 1.<br style="" class=""> greens(:,3) = 0.<br style="" class=""> blues(:,3) = 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;"> <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=""> sres@lbLabelBarOn =
False <br style="" class=""> sres@cnFillMode = "RasterFill"<br style="" class=""> sres@cnLevelSelectionMode = "EqualSpacedLevels"<br style="" class=""> sres@cnMaxLevelCount = 254<br style="" class=""> sres@cnFillBackgroundColor = (/ 1., 1., 1., 1./)<br style="" class=""> sres@cnFillColors = greens<br style="" class=""> greenMap = gsn_csm_contour(wks, g, sres)<br style="" class=""> sres@cnFillColors = blues<br style="" class=""> 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;"> sres@cnFillColors = reds<br style="" class=""> plots(ri,0) = gsn_csm_contour_map(wks, r, sres)<br style="" class=""> overlay(plots(ri,0), greenMap)<br style="" class=""> overlay(plots(ri,0), blueMap)<br style="" class=""> 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;"> gsn_merge_colormaps(wks,"MPL_gist_yarg","precip3_16lev")<br style=""
class=""> dres = res ;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;"> plots(ri,1) = gsn_csm_contour_map(wks,pcp,dres)<br style="" class=""> plot_w1 = gsn_csm_vector(wks,u,v,vres)<br style="" class=""> plot_p = gsn_csm_contour(wks,emi,eres)<br style="" class=""> overlay(plots(ri,1), plot_w1)<br style="" class=""> overlay(plots(ri,1), plot_p)<br style="" class=""> 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>