<div dir="ltr">I&#39;ve had similar frustrations with the pmLabelBarOrthogonalPosF... The most common I run into is like the snippet below that produces the attached image. <div><br></div><div>The larger tmXBLabelFontHeightF is and/or the more landscape the map is (i.e., smaller lat range), then the more likely the labelbar is to overlap with the labels.</div><div><br></div><div>It&#39;s been really hard to find any hard rules to control this.</div><div><br></div><div>    Carl</div><div><br></div><div><div>  in = addfile(&quot;data/<a href="http://olr.day.mean.nc">olr.day.mean.nc</a>&quot;,&quot;r&quot;)</div><div>  data  = short2flt( in-&gt;olr(0,:,:) )</div><div><br></div><div>;************************************************</div><div>; create plot</div><div>;************************************************</div><div>  wks = gsn_open_wks(&quot;pdf&quot;,&quot;lb_map&quot;)          ; open a ncgm file</div><div>  gsn_define_colormap(wks, &quot;wgne15&quot;)</div><div><br></div><div>  res              =   True</div><div>  res@cnFillOn     =   True                ; turn on color</div><div><br></div><div>  res@gsnLeftString = &quot;Default&quot;</div><div>  contour = gsn_csm_contour_map(wks,data,res)  ; create the plot</div><div><br></div><div>  res@gsnLeftString = &quot;Shorter plot&quot;</div><div>  res@mpMinLatF = -60</div><div>  res@mpMaxLatF =  60</div><div>  contour = gsn_csm_contour_map(wks,data,res)  ; create the plot</div><div><br></div><div>  res@gsnLeftString = &quot;Bigger fonts&quot;</div><div>  res@tmXBLabelFontHeightF      = 0.03</div><div>  contour = gsn_csm_contour_map(wks,data,res)  ; create the plot</div><div><br></div><div>  res@gsnLeftString = &quot;Guess we need to move the bar&quot;</div><div>  res@pmLabelBarOrthogonalPosF      = 0.3</div><div>  contour = gsn_csm_contour_map(wks,data,res)  ; create the plot</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 15, 2015 at 12:35 PM, Mary Haley <span dir="ltr">&lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.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 class="gmail_default" style="font-size:small">Hi Alan,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The labelbar stuff drives me crazy too.  Part of the problem is that the &quot;plot manager&quot; is trying to adjust the labelbar for you so that its size and the size of its labels are in line with the size and shape of your plot.  This results in some surprising adjustments.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The other issue is that the plot manager is also trying to leave room for a potential labelbar title and spaces between the labelbar and the labels, so there&#39;s a bunch of adjusting going on there too.  Even if you set the lbAutoManage resource to False, there are still issues.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Dave Brown did a nice write-up of this through example 13 on the labelbar examples page:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><a href="http://www.ncl.ucar.edu/Applications/labelbar.shtml#ex13" target="_blank">http://www.ncl.ucar.edu/Applications/labelbar.shtml#ex13</a></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This example might help you with your issue.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I will try to come up with an example that shows you how to position a labelbar where you want it.  My guess is that this is going to require that you turn off the &quot;plot manager&quot; labelbar, and instead create your own so you can control it better. This would involve using gsn_create_labelbar and maybe gsn_add_annotation to attach it.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If I don&#39;t get to this right away and you get tired of waiting for me, then you might want to see other examples on the labelbar page, like example lb_19.ncl:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><a href="http://www.ncl.ucar.edu/Applications/labelbar.shtml#ex19" target="_blank">http://www.ncl.ucar.edu/Applications/labelbar.shtml#ex19</a></div><span class="HOEnZb"><font color="#888888"><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"> </div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 14, 2015 at 11:05 AM, Alan Brammer <span dir="ltr">&lt;<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@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">This has frustrated me for a while and I always end up going with a trial and error solution to get the job done.<br>
<br>
If I want to “attach” something to a corner of the plot I can usually do it pretty easily.<br>
<br>
e.g Vector reference label:<br>
vcres@vcRefAnnoZone = 0<br>
vcres@vcRefAnnoJust = &quot;TopRight&quot;<br>
vcres@vcRefAnnoParallelPosF = 0.5<br>
vcres@vcRefAnnoOrthogonalPosF = -0.5<br>
<br>
How do I do this with a label bars?<br>
pmLabelBarZone doesn’t seem to behave in the same manner as above.<br>
Trial and error with pmLabelBarOrthogonalPosF is a hassle and then seems to break occasionally if the plot shape changes.<br>
<br>
<br>
<br>
;   simple script  ;  Our ramadda server should give access thru open dap to anyone. (I think).<br>
<br>
tf = addfile(&quot;<a href="http://ramadda.atmos.albany.edu:8080/repository/opendap/synth:4c8dfccb-37c5-43ff-be7b-79a7200bd6e8:LzIwMTUvdC4yMDE1LjBwNS5hbmwubmM=/entry.das" rel="noreferrer" target="_blank">http://ramadda.atmos.albany.edu:8080/repository/opendap/synth:4c8dfccb-37c5-43ff-be7b-79a7200bd6e8:LzIwMTUvdC4yMDE1LjBwNS5hbmwubmM=/entry.das</a>&quot;,&quot;r&quot;)<br>
t = tf-&gt;t(0,:,:,:)  ; time|lev|lat|lon<br>
<br>
wks = gsn_open_wks(&quot;x11&quot;,&quot;&quot;)<br>
<br>
res = True<br>
res@trYMinF = 300<br>
res@trYMaxF = 1000<br>
res@cnFillOn = True<br>
res@tmYROn = False<br>
res@tmYRMode = &quot;Automatic&quot;<br>
res@lbOrientation = &quot;Vertical&quot;<br>
res@lbLeftMarginF = 0.   ;;  There appears to still be a margin?<br>
plot = gsn_csm_pres_hgt(wks, t(:,{12.5},:), res)<br>
<br>
res@pmLabelBarZone = 0<br>
res@pmLabelBarOrthogonalPosF = 0.5    ; Disappeared somewhere?<br>
plot = gsn_csm_pres_hgt(wks, t(:,{12.5},:), res)<br>
<br>
res@pmLabelBarOrthogonalPosF = -0.01    ;  how to guess this number or better way to do it?<br>
plot = gsn_csm_pres_hgt(wks, t(:,{12.5},:), res)<br>
<br>
<br>
<br>
Alan.<br>
<br>
<br>
_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></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><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br><table border="0" cellpadding="2" cellspacing="2" style="max-width:100%;border-collapse:collapse;border-spacing:0px;color:rgb(51,51,51);font-size:14px;border:3px solid rgb(170,170,170);font-family:Times;line-height:12px;background-color:transparent"><tbody><tr><td align="center" height="71" width="71"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><a href="http://www.cicsnc.org/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank"><img src="http://www.cicsnc.org/assets/images/cicsnc-logo.png" width="96" height="93"></a>  <a href="http://www.researcherid.com/rid/B-8711-2011" target="_blank"><br></a></span></span><br><font size="4"><b style="text-align:start;color:rgb(38,58,143);font-family:arial,helvetica,sans-serif"> <a href="http://www.cyclonecenter.org/" style="color:rgb(38,58,143);text-decoration:none" target="_blank">Cyclone</a></b><a href="http://www.cyclonecenter.org/" style="text-align:start;color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;text-decoration:none" target="_blank">Center.org</a>  </font></td><td valign="top"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><b>Carl J. Schreck III, PhD</b><br><b>Research Associate</b><br></span></span><a href="http://www.cicsnc.org/" style="font-family:arial,helvetica,sans-serif;font-size:11px;color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">Cooperative Institute for Climate and Satellites NC (CICS-NC)</a> /<br><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><a href="http://www.cicsnc.org/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">North Carolina Institute for Climate Studies (NCICS)</a> <br><a href="http://ncsu.edu/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">North Carolina State University</a><br><a href="http://ncei.noaa.gov/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">NOAA National Centers for Environmental Information (NCEI)</a><br>151 Patton Ave, Asheville, NC 28801<br>e: </span></span><a href="mailto:cjschrec@ncsu.edu" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">cjschrec@ncsu.edu</a><br style="font-family:arial,helvetica,sans-serif;font-size:11px"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif">o: +1 828 257 3140<br></span></span><a href="http://scholar.google.com/citations?hl=en&amp;user=th8ONEcAAAAJ&amp;view_op=list_works&amp;sortby=pubdate" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">Publications</a><br><a href="http://monitor.cicsnc.org/mjo/" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">monitor.cicsnc.org/mjo</a><br style="font-family:arial,helvetica,sans-serif;font-size:11px"></td></tr></tbody></table></div></div></div></div></div></div></div></div></div></div>
</div>