<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div><span>agree,</span></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;"><span>I hope the ncl-guys here in the forum will make this limitation to be overcome in next release.</span></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;"><span>Regards,</span></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;"><span>SK</span></div> <div class="qtdSeparateBR"><br><br></div><div
style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On Tuesday, September 9, 2014 7:43 PM, Rick Brownrigg <brownrig@ucar.edu> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv6785416761"><div><div dir="ltr"><div><div><div>Hi,<br clear="none"><br clear="none"></div>Unfortunately, this is a known problem -- this color-compositing technique only works for the image-based output formats, not the document-based formats (ps, pdf, eps). I thought this was documented, but the only place I see it mentioned is in the code for example #9 at:<br clear="none"><br clear="none"><a rel="nofollow" shape="rect" target="_blank"
href="http://ncl.ucar.edu/Applications/rgbacolor.shtml">http://ncl.ucar.edu/Applications/rgbacolor.shtml</a><br clear="none"><br clear="none"></div>This limitation should be noted a bit more prominently.<br clear="none"><br clear="none"></div>Rick<br clear="none"></div><div class="yiv6785416761gmail_extra"><br clear="none"><div class="yiv6785416761gmail_quote">On Tue, Sep 9, 2014 at 4:30 AM, sk <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:sdk0084@yahoo.com" target="_blank" href="mailto:sdk0084@yahoo.com">sdk0084@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="yiv6785416761gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv6785416761yqt0202774299" id="yiv6785416761yqt92917"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"><div>Hi,<br clear="none"></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;">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 clear="none"></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;">the following pieces of the code shows how i create the plot <br clear="none"></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;"><br clear="none"></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;">;---Construct RGBA colormaps...<br clear="none"> ramp = fspan(0., 1., 255)<br clear="none"> reds = new((/255, 4/), float)<br clear="none"> greens = new((/255, 4/), float)<br clear="none"> blues = new((/255, 4/), float)<br clear="none"> reds = 0<br clear="none"> greens = 0<br clear="none"> blues = 0<br clear="none"> reds(:,0) = ramp<br clear="none"> greens(:,1) = ramp<br clear="none"> blues(:,2) = ramp<br clear="none">
reds(:,3) = 1.<br clear="none"> greens(:,3) = 0.<br clear="none"> blues(:,3) = 0. <br clear="none"></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;">wks = gsn_open_wks("pdf","../figures/"+prefix)<br clear="none"></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;"> <br clear="none"></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;"> ......<br clear="none"> sres@lbLabelBarOn =
False <br clear="none"> sres@cnFillMode = "RasterFill"<br clear="none"> sres@cnLevelSelectionMode = "EqualSpacedLevels"<br clear="none"> sres@cnMaxLevelCount = 254<br clear="none"> sres@cnFillBackgroundColor = (/ 1., 1., 1., 1./)<br clear="none"> sres@cnFillColors = greens<br clear="none"> greenMap = gsn_csm_contour(wks, g, sres)<br clear="none"> sres@cnFillColors = blues<br clear="none"> blueMap = gsn_csm_contour(wks, b, sres)</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;">
sres@cnFillColors = reds<br clear="none"> plots(ri,0) = gsn_csm_contour_map(wks, r, sres)<br clear="none"> overlay(plots(ri,0), greenMap)<br clear="none"> overlay(plots(ri,0), blueMap)<br clear="none"> draw(plots(ri,0))<br clear="none"></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;">........</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;"> gsn_merge_colormaps(wks,"MPL_gist_yarg","precip3_16lev")<br clear="none"> dres = res ;up to here: resources
for filled contours without thickmarks<br clear="none">.....</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;"> plots(ri,1) = gsn_csm_contour_map(wks,pcp,dres)<br clear="none"> plot_w1 = gsn_csm_vector(wks,u,v,vres)<br clear="none"> plot_p = gsn_csm_contour(wks,emi,eres)<br clear="none"> overlay(plots(ri,1), plot_w1)<br clear="none"> overlay(plots(ri,1), plot_p)<br clear="none"> draw(plots(ri,1))<br clear="none">....</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;"><br clear="none"></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;">Is it ncl limitation or i have to do something more?</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;">Regards,</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;">sk<br clear="none"></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;"><br clear="none"></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;"><br
clear="none"></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;"><br clear="none"><br clear="none"></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;"><br clear="none"></div></div></div></div><br clear="none">_______________________________________________<br clear="none">
ncl-talk mailing list<br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br><br></div> </div> </div> </div> </div></body></html>