Re: Special character request

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri, 1 Jun 2007 09:45:46 -0600 (MDT)

Hi Lin,

You can use what we call a "function code" in your string that causes
NCL to switch to a different font table. We have several font tables
available, and a few of them contain this character.

See:

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

and then click on the "simplex_greek", "complex_greek" or "greek"
word to see all the characters associated with that font table.

You will see that this special character is associated with the letter
"l", so in order to get this in your plot legend, use something like
this:

    text = "Special character~F33~l~F~ back to normal"

The "~F33~" is the way you specify you want to change to font
table 33 (which is the "greek" table). The "~F~" puts you back
at the default font.

See:

    http://www.ncl.ucar.edu/Applications/text.shtml

for more examples of using function codes.

Note that normally ":" is the default function code. Since a colon is
a common character to use in a string, we always recommend people
change this to a "~" by creating a ~/.hluresfile file, and adding the
line:

*TextFuncCode : ~

in it. For more information about the ".hluresfile", see:

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

--Mary

On Fri, 1 Jun 2007, Lin Su wrote:

> Dear NCL users,
>
> Sorry for the disturbing:)
> Does anyone have any experience for using the special character (λ) in the plot legend?
>
> Thanks a lot,
> Lin
>

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Jun 01 2007 - 09:45:46 MDT

This archive was generated by hypermail 2.2.0 : Tue Jun 05 2007 - 16:18:21 MDT