【NCL】添加中文字符
2016-01-17 09:11
393 查看
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
res@gsnFrame = False
plot = gsn_blank_plot(wks, res)
;
ftres = True
ftres@fontQuality = "High"
ftres@fontSize = 16
ftres@fontColor = "blue"
ftres@fontName = "S"
ftres@fontEncoding = "utf8";GBK有问题
; ftres@fontXoffsetF = .2
; ftres@fontYoffsetF = .22
ftres@fontJust = "BottomLeft"
ftres@fontAngleF = 0.
ftres@fontNDC = 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
res@gsnFrame = False
plot = gsn_blank_plot(wks, res)
;
ftres = True
ftres@fontQuality = "High"
ftres@fontSize = 16
ftres@fontColor = "blue"
ftres@fontName = "S"
ftres@fontEncoding = "utf8";GBK有问题
; ftres@fontXoffsetF = .2
; ftres@fontYoffsetF = .22
ftres@fontJust = "BottomLeft"
ftres@fontAngleF = 0.
ftres@fontNDC = True
fontX(wks, plot, "NCL可以标注中文了!", 0.5, 0.4, ftres)
;
frame(wks)
end
相关文章推荐
- 【NCL】确定要添加字符在页面上的位置-drawNDCGrid
- Validform+layer实现漂亮的表单验证特效
- C++ 学习笔记(一些新特性总结 1)
- 联接
- C++ 学习笔记(一些新特性总结 1)
- 【NCL】获取plot图经纬度的页面坐标-datatondc
- zend studio 10 字体,颜色,快捷键等相关设置
- day09-----------面向对象(传智视频)
- win10怎么这只让任务栏图标居中显示?
- 【NCL】复制变量的元数据(属性和坐标)-copy_VarMeta
- 解决ZendStudio打开utf-8格式的php文件乱码
- 分支语句的使用(比较大小)
- SQL高级查询
- mysql安装配置
- javascript实现倒计时跳转页面
- 【NCL】shea_util.ncl只能load一次
- 为什么使用指针比使用对象本身更好?
- BZOJ1059矩阵游戏
- php环境搭建
- eclipse+android环境搭建