This type of thing is possible, but a bit of a pain.
It is discussed in the NCL FAQ at:
http://ncl.ucar.edu/FAQ/#vis_008
Below is an NCL script that will plot "Château" using Helvetica font (it assumes
that you have set your text function code to "~").
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
begin
wks = gsn_open_wks("x11","text")
res = True
res@txJust = 4
res@txFontHeightF = .1
;
; Explanation of the text string function codes:
;
; ~F22~ - Select font 21 (Helvetica)
; ~H-12~ - Move 12 digitized font units left
; ~V+6~ - Move up 6 digitized font units
; ~I~ - Use indexical size since the normal size for the hat is too big
; ~P~ - return to principal size
; ~H+4~ - Move 4 digitized font units right
; ~V-6~ - Move back down 6 units
;
str1 = "~F21~Cha~H-12~~V+6~~I~^~P~~H+4~~V-6~teau"
gsn_text_ndc(wks,str1,0.5,0.7,res) ; Draw the text string
frame(wks)
end
Fred Clare
On May 17, 2011, at 9:31 PM, Junhong Wei wrote:
> Hi,
>
> I want to add a title for my plot, the title includes a character with a hat symbol. The attachment is an example. I check the following link:
> http://www.ncl.ucar.edu/Applications/eqn.shtml
>
> Can't find the exact one for my case. Thanks for the help!
>
> Junhong Wei
>
> --------------------------------------------
> <Picture 1.png>_______________________________________________
> 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 Wed May 18 01:37:20 2011
This archive was generated by hypermail 2.1.8 : Wed May 25 2011 - 09:35:33 MDT