<div dir="ltr"><div><div><div>How about<br> <br><a href="https://www.ncl.ucar.edu/Applications/unique.shtml">https://www.ncl.ucar.edu/Applications/unique.shtml</a><br><br></div>Example 8 uses<br><br><pre style="color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;word-wrap:break-word;white-space:pre-wrap">
res@lbOrientation = "Vertical"
res@lbTitleString = "Sea Surface Temperature (deg C)" ; bar title
res@lbTitlePosition = "Right" ; title location
res@lbTitleDirection = "Across" ; letter angle
res@lbTitleAngleF = 90. ; title angle
res@lbTitleFontHeightF = 0.02 ; font height
</pre></div>Does that do?<br><br></div>D<br><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 7, 2014 at 4:11 PM, Cathy Smith (NOAA Affiliate) <span dir="ltr"><<a href="mailto:cathy.smith@noaa.gov" target="_blank">cathy.smith@noaa.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">NCLers<br>
I'm trying to have my title for a labelbar that is vertical plot<br>
"sideways". Currently, the title plots in the right location but the<br>
each letter is rotated 270 degrees. Can it be done using the default<br>
labelbar routine? Someone showed me a NCL plot that did this but didn't<br>
have the code. I didn't see an example (so far) on the NCL example<br>
page. I tried adding<br>
<br>
res@lbTitleAngleF=90 and res@lbTitleAngleF=270 but neither seemed to<br>
rotate the letters.<br>
<br>
The code to display the issue below is slightly modified from<br>
<br>
lb_2.ncl<br>
<br>
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br>
;************************************************<br>
begin<br>
<br>
in = addfile("/Datasets/ncep.reanalysis/pressure/<a href="http://vwnd.2014.nc" target="_blank">vwnd.2014.nc</a>","r")<br>
v = in->vwnd(0,0,:,:)<br>
<br>
<br>
wks = gsn_open_wks("ps","lb") ; open a ncgm file<br>
gsn_define_colormap(wks, "wgne15")<br>
<br>
res = True<br>
res@cnFillOn = True ; turn on color<br>
res@lbOrientation = "vertical" ; vertical label bar<br>
res@lbAutoManage= "True"<br>
res@lbLabelStrings = (/"-70","-50","-30","-10","10","30","50","70",\<br>
"90","110","180","190","400","500","600","700"/)<br>
res@lbTitleString="Title of labelbar"<br>
res@lbTitleDirection="Down"<br>
res@lbTitlePosition = "Left"<br>
contour = gsn_csm_contour_map_ce(wks,v(:,:),res) ; create the plot<br>
end<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888">Cathy<br>
<br>
--<br>
----------------------------------------------<br>
NOAA/ESRL PSD and CU CIRES<br>
<a href="tel:303-497-6263" value="+13034976263">303-497-6263</a><br>
<a href="http://www.esrl.noaa.gov/psd/people/cathy.smith/" target="_blank">http://www.esrl.noaa.gov/psd/people/cathy.smith/</a><br>
<br>
Emails about data/webpages may get quicker responses from emailing<br>
<a href="mailto:esrl.psd.data@noaa.gov">esrl.psd.data@noaa.gov</a><br>
<br>
</font></span><br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>