<div dir="ltr">Hello Everyone,<div><br></div><div>I am currently using gsn_csm_contour_map along with cnFillColors to specify which colors I want on the label bar. </div><div><br></div><div>For example I am specifiying the minimum, maximum and spacing of values for the contour levels.</div><div><br></div><div><font face="arial, helvetica, sans-serif">wks = gsn_open_wks("pdf","example")</font></div><div><font face="arial, helvetica, sans-serif">gsn_define_colormap(wks,"BlWhRe")</font></div><div><br></div><div>res = True</div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">res@cnLevelSpacingF = 10</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">res@cnMinLevelValF = -75</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">res@cnMaxLevelValF = 75</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo">res@<span style="font-family:menlo">cnFillColors = (/2,9,13,18,22,28,34,40,0,55,62,70,77,84,90,95,102/)</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-family:menlo"><br></span></p><p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif">So this makes the contour level from -5 to 5 be white by using value 0 in the cnFillColors. The problem I have is that this is misleading because it makes a lot of values white instead of just the zero value.</font></p><p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif"><br></font></p><p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif">My question is how to make a contour plot with a color bar that has the zero value be white and all other values be non-white.</font></p><p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif"><br></font></p><p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif">Thanks,</font></p><p style="margin:0px;line-height:normal"><font face="arial, helvetica, sans-serif">Jake</font></p></div></div>