<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" 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'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's running on NCL6.1.2. So confused why it doesn't
do the job... <br>
</p>
<p></p>
<div><br>
f = addfile("pres_height_test_data.nc","r")<br>
mv = f->mv<br>
rcdivv = f->rcdivv<br>
rcwv = f->rcwv<br>
;-------------------------------------------------------------<br>
wks = gsn_open_wks("x11","labelbartest")<br>
<br>
res = True<br>
res@cnLineLabelsOn = False<br>
res@cnInfoLabelOn = False<br>
res@cnFillOn = True<br>
res@cnFillPalette = "BlAqGrYeOrRevi200"<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,mv(0,:,:),rcdivv(0,:,:),rcwv(0,:,:),res)<br>
<br>
<br>
thanks,<br>
Bo<br>
</div>
<br>
<p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Mary Haley <haley@ucar.edu><br>
<b>Sent:</b> Friday, December 9, 2016 11:59:14 AM<br>
<b>To:</b> Dong, Bo<br>
<b>Cc:</b> ncl-talk@ucar.edu<br>
<b>Subject:</b> Re: [ncl-talk] Change LabelBar size in the pres-height plot</font>
<div> </div>
</div>
<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 = "Always"</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">
<<a href="mailto:bdong@albany.edu" target="_blank">bdong@albany.edu</a>></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_-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 = "Always"<br>
res@pmLabelBarWidthF = 0.6 <br>
res@pmLabelBarHeightF = 0.7 <br>
</div>
<p></p>
<p>However, it doesn'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">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>