<div dir="ltr"><div class="gmail_default" style="font-size:small">Bo,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">My apologies. Apparently this was a bug I fixed and it won&#39;t be available until 6.4.0 is released.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It&#39;s a very simple fix, so I&#39;ve attached it here.  It only had a one line change.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">To load this fixed script, the top of your own script needs to look something like this:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default">load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;</div><div class="gmail_default">load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;</div><div class="gmail_default">load &quot;./gsn_csm_vector_pres_hgt_fix.ncl&quot;<br></div><div class="gmail_default"><br></div><div class="gmail_default">Nothing else needs to change in your script.</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 9, 2016 at 1:12 PM, Dong, Bo <span dir="ltr">&lt;<a href="mailto:bdong@albany.edu" target="_blank">bdong@albany.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>

<div id="m_-1922990252016371632divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Mary,</p>
<p><br>
</p>
<p>I did the same resources setting as that in your script, but it still doesn&#39;t work. I did both x11 window and png, but neither one changes the colorbar. My code are as following (also attached as a script). It&#39;s running on NCL6.1.2.  So confused why it doesn&#39;t
 do the job... <br>
</p>
<p></p>
<div><br>
f  = addfile(&quot;<a href="http://pres_height_test_data.nc" target="_blank">pres_height_test_<wbr>data.nc</a>&quot;,&quot;r&quot;)<br>
mv = f-&gt;mv<br>
rcdivv = f-&gt;rcdivv<br>
rcwv = f-&gt;rcwv<br>
;-----------------------------<wbr>------------------------------<wbr>--<br>
wks   = gsn_open_wks(&quot;x11&quot;,&quot;<wbr>labelbartest&quot;)<br>
<br>
res = True<br>
res@cnLineLabelsOn          = False<br>
res@cnInfoLabelOn           = False<br>
res@cnFillOn             = True<br>
res@cnFillPalette           = &quot;BlAqGrYeOrRevi200&quot;<br>
res@vcRefAnnoOrthogonalPosF  = -0.04          ; move reference vec up<br>
res@vcRefMagnitudeF           = 0.2           ; define vector ref mag<br>
res@vcRefLengthF              = 0.05          ; define length of vec ref<br>
res@pmLabelBarWidthF      = 0.8               ; default is shorter<br>
res@pmLabelBarHeightF     = 0.4               ; default is taller<br>
res@pmLabelBarOrthogonalPosF = -0.05          ; move color label bar up<br>
<br>
plot  = gsn_csm_pres_hgt_vector(wks,<wbr>mv(0,:,:),rcdivv(0,:,:),rcwv(<wbr>0,:,:),res)<br>
<br>
<br>
thanks,<br>
Bo<br>
</div>
<br>
<p></p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-1922990252016371632divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Mary Haley &lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt;<br>
<b>Sent:</b> Friday, December 9, 2016 11:59:14 AM<br>
<b>To:</b> Dong, Bo<br>
<b>Cc:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Subject:</b> Re: [ncl-talk] Change LabelBar size in the pres-height plot</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">
<div class="gmail_default"><font face="arial, helvetica, sans-serif">Bo,</font></div>
<div class="gmail_default"><font face="arial, helvetica, sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="arial, helvetica, sans-serif">I suggest not setting these two resources:</font></div>
<div class="gmail_default"><font face="arial, helvetica, sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="arial, helvetica, sans-serif"><span style="color:rgb(0,0,0)">res@lbAutoManage         = False</span><br style="color:rgb(0,0,0)">
<span style="color:rgb(0,0,0)">res@pmLabelBarDisplayMode = &quot;Always&quot;</span><br>
</font></div>
<div class="gmail_default"><span style="color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif"><br>
</font></span></div>
<div class="gmail_default"><span style="color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">The other resources you have should be fine, but you are making the values rather large. The labelbar is likely to fill up most of your page.  </font></span></div>
<div class="gmail_default"><span style="color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif"><br>
</font></span></div>
<div class="gmail_default"><span style="color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">See the attached script and image. I took an existing example from the streamlines page, and made the labelbar extra thick using the pm*Width/Height resources.</font></span></div>
<div class="gmail_default"><span style="color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif"><br>
</font></span></div>
<div class="gmail_default"><span style="color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">--Mary</font></span></div>
<div class="gmail_default" style="font-size:small"><span style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif;font-size:16px"><br>
</span></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Dec 8, 2016 at 5:18 PM, Dong, Bo <span dir="ltr">
&lt;<a href="mailto:bdong@albany.edu" target="_blank">bdong@albany.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_-1922990252016371632m_-9187286035277080129divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Dear NCL users,</p>
<p><br>
</p>
<p>I was trying to adjust the width and height of the labelbar associated with a <span>
gsn_csm_pres_hgt_vector</span> plot. The resources I set include:</p>
<p></p>
<div>res@lbAutoManage         = False<br>
res@pmLabelBarDisplayMode = &quot;Always&quot;<br>
res@pmLabelBarWidthF      = 0.6          <br>
res@pmLabelBarHeightF     = 0.7    <br>
</div>
<p></p>
<p>However, it doesn&#39;t change anything to the labelbar. For <span>gsn_csm_contour_map</span> it works, but not for the g<span>sn_csm_pres_hgt_vector</span> plot</p>
<p>Does anyone know how to set the resources to make it work? <br>
</p>
<p><br>
</p>
<p>Many thanks,</p>
<p>Bo<br>
</p>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>

</blockquote></div><br></div>