Re: questions about superscripts and Greek characters

From: Yi Wang <yiwang6_at_nyahnyahspammersnyahnyah>
Date: Fri May 20 2011 - 14:09:08 MDT

Dear Adam,

MY GOD! IT WORKS!!! Thank you so much!!!

Best,
Yi

On Fri, May 20, 2011 at 2:57 PM, Adam Phillips <asphilli@ucar.edu> wrote:

> Hi Yi,
> You are getting µµ instead of µm because you need to change your font back
> to helvetica before you create the last m. Try this:
> res@gsnRightString = "units: " + "Wm~S~-2~N~sr~S~-1~N~" + "~F8~m~N~" +
> "~F21~m~S~-1~N~"
>
> And let us know if it doesn't work... Adam
>
>
> On 05/20/2011 01:46 PM, Yi Wang wrote:
>
>> Dear Will,
>> Thanks a lot, I tried your suggestion, i.e. I used res@gsnRightString
>> <mailto:res@gsnRightString> = "units: " + "Wm~S~-2~N~sr~S~-1~N~" +
>>
>> "~F8~m~N~" + "m~S~-1~N~",
>> but I still got Wm^-2 sr^-1 ^µµ^-1
>> and what I want is Wm^-2 sr^-1 ^µm^-1
>>
>> It really drive me crazy. I just do not know why it always give me µµ
>> not µm. Any more good ideas? Thanks a lot.
>> Best,
>> Yi
>> ^
>>
>> ^
>>
>> On Fri, May 20, 2011 at 2:12 PM, Hobbs, Will R (3244-CalTech)
>> <William.R.Hobbs@jpl.nasa.gov <mailto:William.R.Hobbs@jpl.nasa.gov>>
>> wrote:
>>
>> Yi
>>
>> You had an 'N' where you should have had a 'tilda' for the
>> punultimate string: following should work"
>>
>> res@gsnRightString <mailto:res@gsnRightString> = "units: " +
>>
>> "Wm~S~-2~N~sr~S~-1~N~" + "~F8~m~N~" + "m~S~-1~N~"
>>
>> It's tough to track down this sort of stuff with a very large string
>> like this, so if I have a problem I usually just try and debug each
>> 'substring' individually.
>>
>> Will
>>
>>
>> *
>> *
>> Date: Fri, 20 May 2011 12:03:38 -0700
>> To: "ncl-talk@ucar.edu <mailto:ncl-talk@ucar.edu> Talk"
>> <ncl-talk@ucar.edu <mailto:ncl-talk@ucar.edu>>, Mary Haley
>> <haley@ucar.edu <mailto:haley@ucar.edu>>, Adam Phillips
>> <asphilli@ucar.edu <mailto:asphilli@ucar.edu>>
>>
>> Subject: questions about superscripts and Greek characters
>>
>> Dear NCL experts,
>>
>> I want to generate a plot with the units (see correct.png in the
>> attachment). But I got the wrong one (see wrong.png in the attachment).
>>
>> I saw your function code and equations pages on how to do
>> subscripts, superscripts, and greek characters:
>> http://www.ncl.ucar.edu/Applications/fcodes.shtml
>> http://www.ncl.ucar.edu/Applications/eqn.shtml
>>
>> However, I still do not know where came the problem. Could you
>> please help me to see the following codes?
>> res@gsnRightString <mailto:res@gsnRightString> = "units: " +
>>
>> "Wm~S~-2~N~sr~S~-1~N~" + "~F8~m~NN" + "~m~S~-1~N~"
>> Thanks a lot.
>>
>> Best,
>> Yi
>>
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>
> --
> ______________________________________________________________
>
> Adam Phillips asphilli@ucar.edu
> NCAR/Climate and Global Dynamics Division (303) 497-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
Received on Fri May 20 14:09:24 2011

This archive was generated by hypermail 2.1.8 : Wed May 25 2011 - 09:35:33 MDT