<div dir="ltr"><div class="gmail_default" style="font-size:small">Geeta,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Rick is out today, so I'll try to help.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_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. So, only the first nlevels+1 colors in the color map are getting selected, which are mostly green.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_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="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Here's what your labelbar code will look like with the fixes:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default"><font face="monospace, monospace"> levels = (/5820,5840,5860,5880,5900/)<br> nlevels = dimsizes(levels)</font></div><div class="gmail_default"><font face="monospace, monospace"> labels = "" + levels</font></div><div class="gmail_default"><font face="monospace, monospace"> lbres = True</font></div><div class="gmail_default"><font face="monospace, monospace"> lbres@lbAutoManage = False</font></div><div class="gmail_default"><font face="monospace, monospace"> lbres@lbFillColors = span_color_rgba ("precip_11lev",nlevels+1)</font></div><div class="gmail_default"><font face="monospace, monospace"> lbres@lbPerimOn = False</font></div><div class="gmail_default"><font face="monospace, monospace"> lbres@lbMonoFillPattern = True</font></div><div class="gmail_default"><font face="monospace, monospace"> lbres@lbLabelAlignment = "InteriorEdges"</font></div><div class="gmail_default"><font face="monospace, monospace"> lbres@vpWidthF = 0.04 ; Thickness of labelbar </font></div><div class="gmail_default"><font face="monospace, monospace"> lbres@lbLabelFontHeightF= 0.01 ; Thickness of labelbar </font></div><div class="gmail_default"><font face="monospace, monospace"> gsn_labelbar_ndc(wks,5,labels,0.7,0.8,lbres)</font></div></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 28, 2016 at 11:46 AM, Geeta Geeta <span dir="ltr"><<a href="mailto:geetag54@yahoo.com" target="_blank">geetag54@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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. </span></div><span class="HOEnZb"><font color="#888888"><div></div><div> </div><div>Geeta.</div></font></span><div><div class="h5"> <div><br><br></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 size="2" face="Arial"> On Monday, 28 March 2016 10:14 PM, Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>> wrote:<br></font></div> <br><br> <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"><<a rel="nofollow" shape="rect" href="mailto:geetag54@yahoo.com" target="_blank">geetag54@yahoo.com</a>></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. </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. </div><div dir="ltr"><br clear="none"></div><div dir="ltr">but the colors are different. </div><div dir="ltr"><br clear="none"></div><div dir="ltr">pls suggest.</div><span><font color="#888888"></font></span><div></div><div> </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" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">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></div></div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>