<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Tirkey,</p>
<p>You can use &nbsp; res@cnFillColors&nbsp;&nbsp; = (/put the numbers corresponding of the desired&nbsp;color:</p>
<p><a id="lnk22613" href="https://www.ncl.ucar.edu/Document/Graphics/ColorTables/BlueWhiteOrangeRed.shtml">https://www.ncl.ucar.edu/Document/Graphics/ColorTables/BlueWhiteOrangeRed.shtml</a> /)</p>
<p>Each color should has a number</p>
<p>Hope this helps!</p>
<p>Mamadou,</p>
<p>Regards<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De :</b> ncl-talk-bounces@ucar.edu &lt;ncl-talk-bounces@ucar.edu&gt; de la part de snehlata Tirkey &lt;snehlata_tirkey@yahoo.com&gt;<br>
<b>Envoyé :</b> jeudi 13 novembre 2014 04:24<br>
<b>À :</b> ncl-talk@ucar.edu<br>
<b>Objet :</b> [ncl-talk] How to coincide zero with the white color of the colo bar with uneven numbering</font>
<div>&nbsp;</div>
</div>
<div>
<div style="color:#000; background-color:#fff; font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif; font-size:12px">
<div dir="ltr" id="yui_3_16_0_1_1415631647999_270809"><span id="yui_3_16_0_1_1415631647999_270942">Hello NCL users,</span></div>
<div id="yui_3_16_0_1_1415631647999_270852" dir="ltr"><br>
</div>
<div id="yui_3_16_0_1_1415631647999_270861" dir="ltr"><span id="yui_3_16_0_1_1415631647999_270860">I am trying to plot a color plot with a color bar of range -1 to 2 with an interval of 0.2 by using-</span></div>
<div id="yui_3_16_0_1_1415631647999_270884" dir="ltr"><br>
</div>
<div id="yui_3_16_0_1_1415631647999_270923" dir="ltr">&nbsp; wks = gsn_open_wks(&quot;ps&quot;,&quot;MSE_0.5&quot;)<br class="" style="">
&nbsp; gsn_define_colormap(wks,&quot;BlueWhiteOrangeRed&quot;)<br class="" style="">
&nbsp; <br class="" style="">
&nbsp; res&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp; True<br class="" style="">
&nbsp; res@gsnMaximize&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp; True<br class="" style="">
&nbsp; res@gsnAddCyclic&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp; False<br class="" style="">
&nbsp; res@cnFillOn&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp; True<br class="" style="">
&nbsp; res@gsnSpreadColors&nbsp; =&nbsp; True<br class="" style="">
&nbsp; res@gsnSpreadColorStart = -1<br class="" style="">
&nbsp; res@gsnSpreadColorEnd&nbsp; = 2<br class="" style="">
&nbsp; res@trXMinF&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 11<br class="" style="">
&nbsp; res@trXMaxF&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 27<br>
</div>
<div id="yui_3_16_0_1_1415631647999_270886" dir="ltr"><span id="yui_3_16_0_1_1415631647999_270888">&nbsp;res@cnLevelSelectionMode =&nbsp; &quot;ManualLevels&quot;<br class="" style="">
&nbsp; res@cnLevelSpacingF&nbsp;&nbsp;&nbsp; = 0.2<br class="" style="">
&nbsp; res@cnMinLevelValF&nbsp;&nbsp; =&nbsp; -1<br class="" style="">
&nbsp; res@cnMaxLevelValF&nbsp;&nbsp;&nbsp; = 2</span></div>
<div id="yui_3_16_0_1_1415631647999_270811">
<div id="yui_3_16_0_1_1415631647999_270955">&nbsp;</div>
<div id="yui_3_16_0_1_1415631647999_270957" dir="ltr">I want '0' to coincide with the white of the bar but it is coinciding with the yellow. Please help.</div>
<div id="yui_3_16_0_1_1415631647999_270991" dir="ltr"><br>
</div>
<div id="yui_3_16_0_1_1415631647999_270989" dir="ltr">Thanking in anticipation.</div>
<div id="yui_3_16_0_1_1415631647999_270988" dir="ltr"><br>
</div>
</div>
<div id="yui_3_16_0_1_1415631647999_270815" class="signature">
<div id="yui_3_16_0_1_1415631647999_270814"><span id="yui_3_16_0_1_1415631647999_270813">Yours sincerely,</span></div>
<div id="yui_3_16_0_1_1415631647999_270818" style="font-weight:bold"><span id="yui_3_16_0_1_1415631647999_270817">Snehlata Tirkey</span></div>
<div id="yui_3_16_0_1_1415631647999_270824"><span id="yui_3_16_0_1_1415631647999_270823">e-mail: snehlata_tirkey@yahoo.com</span></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>