中文

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

---------------------

来源:CSDN

原文:https://blog.csdn.net/qwsamxy/article/details/50530888

版权声明:本文为博主原创文章,转载请附上博文链接!

你可能感兴趣的:(中文)