<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks Mary & Carl, <div class=""><br class=""></div><div class="">I went with the create my own and attach method (also made a, in my opinion, better or simpler create_laberbar function). Was much easier to put it exactly where I wanted it this way. I’ll send an example to you (or the list) at a later date if you want. Don’t have time to clean it up at the moment though. </div><div class=""><br class=""></div><div class="">Alan. </div><div class=""><br class=""></div><div class=""><br class=""><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 15 Oct 2015, at 12:35, Mary Haley <<a href="mailto:haley@ucar.edu" class="">haley@ucar.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-size:small">Hi Alan,</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">The labelbar stuff drives me crazy too. Part of the problem is that the "plot manager" 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 class=""></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'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 class=""></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 class=""></div><div class="gmail_default" style="font-size:small"><a href="http://www.ncl.ucar.edu/Applications/labelbar.shtml#ex13" class="">http://www.ncl.ucar.edu/Applications/labelbar.shtml#ex13</a></div><div class="gmail_default" style="font-size:small"><br class=""></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 class=""></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 "plot manager" 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 class=""></div><div class="gmail_default" style="font-size:small">If I don'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 class=""></div><div class="gmail_default" style="font-size:small"><a href="http://www.ncl.ucar.edu/Applications/labelbar.shtml#ex19" class="">http://www.ncl.ucar.edu/Applications/labelbar.shtml#ex19</a></div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"> </div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Oct 14, 2015 at 11:05 AM, Alan Brammer <span dir="ltr" class=""><<a href="mailto:abrammer@albany.edu" target="_blank" class="">abrammer@albany.edu</a>></span> wrote:<br class=""><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 class="">
<br class="">
If I want to “attach” something to a corner of the plot I can usually do it pretty easily.<br class="">
<br class="">
e.g Vector reference label:<br class="">
vcres@vcRefAnnoZone = 0<br class="">
vcres@vcRefAnnoJust = "TopRight"<br class="">
vcres@vcRefAnnoParallelPosF = 0.5<br class="">
vcres@vcRefAnnoOrthogonalPosF = -0.5<br class="">
<br class="">
How do I do this with a label bars?<br class="">
pmLabelBarZone doesn’t seem to behave in the same manner as above.<br class="">
Trial and error with pmLabelBarOrthogonalPosF is a hassle and then seems to break occasionally if the plot shape changes.<br class="">
<br class="">
<br class="">
<br class="">
; simple script ; Our ramadda server should give access thru open dap to anyone. (I think).<br class="">
<br class="">
tf = addfile("<a href="http://ramadda.atmos.albany.edu:8080/repository/opendap/synth:4c8dfccb-37c5-43ff-be7b-79a7200bd6e8:LzIwMTUvdC4yMDE1LjBwNS5hbmwubmM=/entry.das" rel="noreferrer" target="_blank" class="">http://ramadda.atmos.albany.edu:8080/repository/opendap/synth:4c8dfccb-37c5-43ff-be7b-79a7200bd6e8:LzIwMTUvdC4yMDE1LjBwNS5hbmwubmM=/entry.das</a>","r")<br class="">
t = tf->t(0,:,:,:) ; time|lev|lat|lon<br class="">
<br class="">
wks = gsn_open_wks("x11","")<br class="">
<br class="">
res = True<br class="">
res@trYMinF = 300<br class="">
res@trYMaxF = 1000<br class="">
res@cnFillOn = True<br class="">
res@tmYROn = False<br class="">
res@tmYRMode = "Automatic"<br class="">
res@lbOrientation = "Vertical"<br class="">
res@lbLeftMarginF = 0. ;; There appears to still be a margin?<br class="">
plot = gsn_csm_pres_hgt(wks, t(:,{12.5},:), res)<br class="">
<br class="">
res@pmLabelBarZone = 0<br class="">
res@pmLabelBarOrthogonalPosF = 0.5 ; Disappeared somewhere?<br class="">
plot = gsn_csm_pres_hgt(wks, t(:,{12.5},:), res)<br class="">
<br class="">
res@pmLabelBarOrthogonalPosF = -0.01 ; how to guess this number or better way to do it?<br class="">
plot = gsn_csm_pres_hgt(wks, t(:,{12.5},:), res)<br class="">
<br class="">
<br class="">
<br class="">
Alan.<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class="">
</blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></div></body></html>