Re: lable the color bar

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri Aug 12 2011 - 13:24:19 MDT

Actually, it is recommended that you install the .hluresfile
into your home directory. Among other things, this sets the TextFuncCode
to ~. This is what NCL recommends.

http://www.ncl.ucar.edu/Document/Graphics/hlures.shtml

Note: When installed the file name is

.hluresfile

NCL looks for this everytime NCL is invoked.

On 8/12/11 1:14 PM, H.Dang wrote:
> Hi Adam,
> Thank you. ":" works!
>
> Have a good weekend.
> Hongyan
> On Fri, Aug 12, 2011 at 2:58 PM, Adam Phillips <asphilli@ucar.edu
> <mailto:asphilli@ucar.edu>> wrote:
>
> Hi Hongyan,
> I think instead of this:
> TextFuncCode : ~
>
> you need this:
> *TextFuncCode : ~
>
> in your .hluresfile...
>
> You can test if your function code is still a : by changing this:
> res@lbTitleString = "[VOC~B~3~N~]~B~F~N~"
> to this:
> res@lbTitleString = "[VOC:B:3:N:]:B:F:N:"
>
> Adam
>
> On 08/12/2011 12:52 PM, H.Dang wrote:
> > Hi Dave and Adam,
> > Thanks for your information. I modified my code:
> > 71 res@lbMainFuncCode <mailto:res@lbMainFuncCode
> <mailto:res@lbMainFuncCode>> = "~"
> > 72 res@lbLabelStride <mailto:res@lbLabelStride
> <mailto:res@lbLabelStride>> =
> > 2 ; skip every other label
> > 73 res@lbTitleString <mailto:res@lbTitleString
> <mailto:res@lbTitleString>> =
> > "[VOC~B~3~N~]~B~F~N~"
> > 74 res@lbTitleDirection <mailto:res@lbTitleDirection
> <mailto:res@lbTitleDirection>> = "Across"
> > 75 res@lbTitlePosition <mailto:res@lbTitlePosition
> <mailto:res@lbTitlePosition>> = "Right"
> > 76 res@lbTitleFontHeightF <mailto:res@lbTitleFontHeightF
> <mailto:res@lbTitleFontHeightF>> = 0.008
> > 77 ; res@lbLabelFontHeightF <mailto:res@lbLabelFontHeightF
> <mailto:res@lbLabelFontHeightF>> = 0.006
> > 78
> >
> > In my ~/.hluresfile, the setting is like:
> > 22 # Function Codes [Default is a colon]
> > 23 TextFuncCode : ~
> >
> > Seems "~" doesn't work for me (please look at the attachment). is
> there
> > any mistake somewhere in my setting? Thank you.
> > Hongyan
> > On Fri, Aug 12, 2011 at 1:39 PM, David Brown <dbrown@ucar.edu
> <mailto:dbrown@ucar.edu>
> > <mailto:dbrown@ucar.edu <mailto:dbrown@ucar.edu>>> wrote:
> >
> > As for the question of putting this text on the right side of the
> > color bar you can use the label bar title resources.
> > Use lbTitleOn, lbTitleString, and lbTitlePosition set to "Right".
> > See http://www.ncl.ucar.edu/Document/Graphics/Resources/lb.shtml
> > for more info.
> > -dave
> >
> > On Aug 12, 2011, at 10:21 AM, Adam Phillips wrote:
> >
> > > Hi Hongyan,
> > > You can use the text function code ~B~ to subscript. This assumes
> > you've
> > > changed your text function code to ~ from : by setting it in your
> > > .hluresfile. See example 5 here:
> > > http://www.ncl.ucar.edu/Applications/text.shtml#ex5
> > >
> > > For instance, if you type "[VOC~B~3~N~]~B~F~N~" that should do
> > what you
> > > want. ~B~ = subscript, ~N~ = normal font
> > > See the top of this page here:
> > > http://www.ncl.ucar.edu/Applications/text.shtml
> > >
> > > Adam
> > >
> > > On 08/12/2011 08:39 AM, H.Dang wrote:
> > >> Hi Dear all,
> > >> I just wonder how can I put the (moles/10s) in my current title
> > (please
> > >> see the attachment) to the right hand end of the color bar,
> > especially
> > >> if it's something like [VOC_3 ]_F,
> > >> How do I make "3" and "F" as small and low as that?
> > >> Thank you!
> > >> --
> > >> Cordially,
> > >> Hongyan(鸿雁)
> > >> Tel: 1-519-8884567ext36667 <tel:1-519-8884567ext36667>
> <tel:1-519-8884567ext36667 <tel:1-519-8884567ext36667>>
> > >>
> > >>
> > >>
> > >>
> > >> _______________________________________________
> > >> ncl-talk mailing list
> > >> List instructions, subscriber options, unsubscribe:
> > >> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> > >
> > > --
> > > ______________________________________________________________
> > > Adam Phillips asphilli@ucar.edu <mailto:asphilli@ucar.edu>
> <mailto:asphilli@ucar.edu <mailto:asphilli@ucar.edu>>
> > > NCAR/Climate and Global Dynamics Division (303) 497-1726
> <tel:%28303%29%20497-1726>
> > <tel:%28303%29%20497-1726>
> > > P.O. Box 3000
> > > Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli
> > > _______________________________________________
> > > ncl-talk mailing list
> > > List instructions, subscriber options, unsubscribe:
> > > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> > _______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> >
> >
> >
> > --
> > Cordially,
> > Hongyan(鸿雁)
> > Tel: 1-519-8884567ext36667 <tel:1-519-8884567ext36667>
> >
> >
> >
> >
> > _______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> --
> ______________________________________________________________
> Adam Phillips asphilli@ucar.edu <mailto:asphilli@ucar.edu>
> NCAR/Climate and Global Dynamics Division (303) 497-1726
> <tel:%28303%29%20497-1726>
> P.O. Box 3000
> Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
>
> --
> Cordially,
> Hongyan(鸿雁)
> Tel: 1-519-8884567ext36667
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Aug 12 13:24:24 2011

This archive was generated by hypermail 2.1.8 : Mon Aug 22 2011 - 08:13:37 MDT