Re: how to display colon

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri Dec 09 2011 - 09:08:05 MST

Hi JinQ,

I assume you mean this happens when this string is used as a title on a plot?

If so, the reason is that the colon, ":", is a special character that indicates to NCL graphics
that the next few characters will contain a function code.

In fact, you probably should have gotten an error from this.

Function codes are special characters that allow you to do
things like subscripting, new lines, and font changes.

Since the colon is a common character to have in a string, we
usually recommend that you change this to something else
less common, like a tilde, "~".

To do this, download a ".hluresfile" file from:

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

and put it in your home directory.

In this file is the line:

*TextFuncCode : ~

This changes the function code character from a colon to a tilde.

-Mary

On Dec 9, 2011, at 8:53 AM, JinQ Liu wrote:

> hi,
> I found that when I use
> prc@long_name =" +/- 1:30 Z"
> I can only get the string +/- 1X , :30 Z was replaced by Z
> what is wrong?
>
> Thanks.
> JinQ
>
> --
> JinQ, M.S. Student
> Ocean University of China
> --
>
>
>
> _______________________________________________
> 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 Dec 9 09:08:17 2011

This archive was generated by hypermail 2.1.8 : Fri Dec 09 2011 - 13:09:09 MST