<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_ym18_1_1459489087825_4790"><span id="yui_3_16_0_ym18_1_1459489087825_4831">thanks Mary. It worked. </span></div><div>&nbsp;</div><div id="yui_3_16_0_ym18_1_1459489087825_4879" class="signature">Geeta.</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: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"> <div dir="ltr"><font face="Arial" size="2"> On Tuesday, 29 March 2016 8:10 PM, Mary Haley &lt;haley@ucar.edu&gt; wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv8075010320"><div><div dir="ltr"><div class="yiv8075010320gmail_default" style="font-size:small;">Geeta,</div><div class="yiv8075010320gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv8075010320gmail_default" style="font-size:small;">Rick is out today, so I'll try to help.</div><div class="yiv8075010320gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv8075010320gmail_default" style="font-size:small;">I think you are almost there. The problem is that you are setting lbFillColors to the full colormap, which has more colors than the levels that you are specifying.&nbsp; So, only the first nlevels+1 colors in the color map are getting selected, which are mostly green.</div><div class="yiv8075010320gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv8075010320gmail_default" style="font-size:small;">Since your contours are spanning the full "precip4_11lev" colormap, you want to make sure that lbFillColors also spans the full color map. To do this, use the span_color_rgba function. Also, gsn_labelbar_ndc, by default, centers the labels under each box. However, the levels you've chosen are contour levels that represent the levels *between* each color box. For this, then, you additionally want to set lbLabelAlignment to "InteriorEdges".</div><div class="yiv8075010320gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv8075010320gmail_default" style="font-size:small;">Here's what your labelbar code will look like with the fixes:</div><div class="yiv8075010320gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv8075010320gmail_default" style="font-size:small;"><div class="yiv8075010320gmail_default"><font face="monospace, monospace">&nbsp; levels &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= (/5820,5840,5860,5880,5900/)<br clear="none">&nbsp; nlevels &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = dimsizes(levels)</font></div><div class="yiv8075010320gmail_default"><font face="monospace, monospace">&nbsp; labels &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= "" + levels</font></div><div class="yiv8075010320gmail_default"><font face="monospace, monospace">&nbsp; lbres &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= True</font></div><div class="yiv8075010320gmail_default"><font face="monospace, monospace">&nbsp; lbres@lbAutoManage &nbsp; &nbsp; &nbsp;= False</font></div><div class="yiv8075010320gmail_default"><font face="monospace, monospace">&nbsp; lbres@lbFillColors &nbsp; &nbsp; &nbsp;= span_color_rgba ("precip_11lev",nlevels+1)</font></div><div class="yiv8075010320gmail_default"><font face="monospace, monospace">&nbsp; lbres@lbPerimOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = False</font></div><div class="yiv8075010320gmail_default"><font face="monospace, monospace">&nbsp; lbres@lbMonoFillPattern = True</font></div><div class="yiv8075010320gmail_default"><font face="monospace, monospace">&nbsp; lbres@lbLabelAlignment &nbsp;= "InteriorEdges"</font></div><div class="yiv8075010320gmail_default"><font face="monospace, monospace">&nbsp; lbres@vpWidthF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 0.04 ; Thickness of labelbar &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div class="yiv8075010320gmail_default"><font face="monospace, monospace">&nbsp; lbres@lbLabelFontHeightF= 0.01 ; Thickness of labelbar &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div class="yiv8075010320gmail_default"><font face="monospace, monospace">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gsn_labelbar_ndc(wks,5,labels,0.7,0.8,lbres)</font></div></div><div class="yiv8075010320gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv8075010320gmail_default" style="font-size:small;">--Mary</div><div class="yiv8075010320gmail_default" style="font-size:small;"><br clear="none"></div></div><div class="yiv8075010320gmail_extra"><br clear="none"><div class="yiv8075010320gmail_quote">On Mon, Mar 28, 2016 at 11:46 AM, Geeta Geeta <span dir="ltr">&lt;<a rel="nofollow" shape="rect" ymailto="mailto:geetag54@yahoo.com" target="_blank" href="mailto:geetag54@yahoo.com">geetag54@yahoo.com</a>&gt;</span> wrote:<br clear="none"><blockquote class="yiv8075010320gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv8075010320yqt2348544999" id="yiv8075010320yqt63380"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"><div dir="ltr"><span>thanks Rick. I have corrected it but same issue persists.&nbsp;</span></div><span class="yiv8075010320HOEnZb"><font color="#888888"></font></span><div></div><div>&nbsp;</div><div>Geeta.</div><div><div class="yiv8075010320h5"> <div><br clear="none"><br clear="none"></div><div style="display:block;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"> <div dir="ltr"><font face="Arial" size="2"> On Monday, 28 March 2016 10:14 PM, Rick Brownrigg &lt;<a rel="nofollow" shape="rect" ymailto="mailto:brownrig@ucar.edu" target="_blank" href="mailto:brownrig@ucar.edu">brownrig@ucar.edu</a>&gt; wrote:<br clear="none"></font></div>  <br clear="none"><br clear="none"> <div><div><div><div dir="ltr"><div><div>As far as I can tell, it looks like you specify "precip_11lev" for the cnres resource, which is used in the call the gsn_csm_contour(), but then specify "CBR_wet" as the colormap used in drawing your labelbar. They are similar but not exact.<br clear="none"><br clear="none"></div>Hope that helps...<br clear="none"></div>Rick<br clear="none"></div><div><br clear="none"><div>On Sun, Mar 27, 2016 at 11:10 AM, Geeta Geeta <span dir="ltr">&lt;<a rel="nofollow" shape="rect" ymailto="mailto:geetag54@yahoo.com" target="_blank" href="mailto:geetag54@yahoo.com">geetag54@yahoo.com</a>&gt;</span> wrote:<br clear="none"><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"><div dir="ltr">I have made 2nd label bar using gsn_labelbar_ndc function. In this label bar I have specified the fillColor as the color used for shading the contours.&nbsp;</div><div dir="ltr"><br clear="none"></div><div dir="ltr">The shaded contours on the 1st Column have been used to draw the gsn_labelbar_ndc.&nbsp;</div><div dir="ltr"><br clear="none"></div><div dir="ltr">but the colors are different.&nbsp;</div><div dir="ltr"><br clear="none"></div><div dir="ltr">pls suggest.</div><span><font color="#888888"></font></span><div></div><div>&nbsp;</div><div>Geeta.</div></div></div></div><br clear="none">_______________________________________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><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 clear="none"><br clear="none"></div>  </div> </div>  </div></div></div></div></div></div><br clear="none">_______________________________________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><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>