【NCL】新增中文字元
阿新 • • 發佈:2018-12-31
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/supplies/chinese/WCHAR.ncl"
begin
wks = gsn_open_wks("x11","name")
drawNDCGrid(wks)
res = True
[email protected] = False
plot = gsn_blank_plot(wks, res)
;
ftres = True
[email protected] = "High"
[email protected] = 16
[email protected] = "blue"
[email protected] = "S"
[email protected] = "utf8";GBK有問題
; [email protected] = .2
; [email protected] = .22
[email protected] = "BottomLeft"
[email protected] = 0.
[email protected] = True
fontX(wks, plot, "NCL可以標註中文了!", 0.5, 0.4, ftres)
;
frame(wks)
end
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/supplies/chinese/WCHAR.ncl"
begin
wks = gsn_open_wks("x11","name")
drawNDCGrid(wks)
res = True
[email protected] = False
plot = gsn_blank_plot(wks, res)
;
ftres = True
[email protected] = 16
[email protected] = "blue"
[email protected] = "S"
[email protected] = "utf8";GBK有問題
; [email protected] = .2
; [email protected] = .22
[email protected] = "BottomLeft"
[email protected] = True
fontX(wks, plot, "NCL可以標註中文了!", 0.5, 0.4, ftres)
;
frame(wks)
end