Re: Custom Labelbar

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Mon Apr 18 2011 - 10:31:16 MDT

Hi Louis,
I think you want to use lbLabelStrings:
http://www.ncl.ucar.edu/Document/Graphics/Resources/lb.shtml#lbLabelStrings

Note that you need to set cnExplicitLabelBarLabelsOn = True to use
lbLabelStrings:

http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnExplicitLabelBarLabelsOn

To get the ° symbol in text in NCL, one way to do it is to use
superscript via text function codes with the letter o. For instance:
"10~S~o~N~C" will give you: 10°C

The other way is to locate a ° symbol in a font table and change to that
font using function codes.
Good luck,
Adam

On 04/18/2011 06:53 AM, louis Vonder wrote:
>
> Dear ncl users,
>
> I am looking forward a way to draw a labelbar with custom symbol.
>
> Rather than having only numbers I will like to add character.
> For example, I want to have 10°C, 15°C, 20°C than 10, 15, 20
>
> Regards
>
> Louis
>
>
>
>
>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
__________________________________________________
Adam Phillips 
asphilli@ucar.edu
National Center for Atmospheric Research   tel: (303) 497-1726
Climate and Global Dynamics Division         fax: (303) 497-1333
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
Received on Tue Apr 19 02:31:24 2011

This archive was generated by hypermail 2.1.8 : Tue Apr 19 2011 - 18:32:02 MDT