- 积分
- 2399
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-1-28
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 sun_shine_Xia 于 2013-7-20 14:11 编辑
我最近在用NCL提供的例子学着画图的时候,比如说下面是example 5中的一段,例子中明明说可以用":F25:longitude"来直接定义字体的类型,而不用再写一个字体定义的语句,如下面脚本中的红色部分,但是我得到的图却是下面这个。。没搞懂是怎么一回事~~求大神们帮我看看啊,感激不尽啊!
;----------- Begin third plot -----------------------------------------
delete(resources) ; Start with a new list of resources.
resources = True
resources@tiXAxisString = ":F25:longitude"
resources@tiYAxisString = ":F25:latitude"
resources@cnFillOn = True ; Turn on contour fill.
resources@cnLineLabelsOn = False ; Turn off line labels.
resources@cnInfoLabelOn = False ; Turn off info label.
resources@pmLabelBarDisplayMode = "Always" ; Turn on a label bar.
resources@lbPerimOn = False ; Turn off label bar perim.
resources@sfXCStartV = 0 ; Define where contour plot
resources@sfXCEndV = 180 ; should lie on the map plot.
resources@sfYCStartV = 0
resources@sfYCEndV = 80
resources@mpProjection = "LambertEqualArea" ; Change the map projection.
resources@mpCenterLonF =90
resources@mpCenterLatF = 40
print(Z@nlon-1)
print(Z@nlat-1)
print(Z&lon(0))
print(Z&lat(72))
do i=0,Z@nlat-1,2
print(Z&lat(i))
end do
resources@mpLimitMode = "LatLon" ; Limit the map view.
resources@mpMinLonF = 0
resources@mpMaxLonF = 180
resources@mpMinLatF = 0
resources@mpMaxLatF = 80
resources@mpPerimOn = True ; Turn on map perimeter.
resources@tiMainString = ":F26:January 1996 storm" ; Set a title.
resources@vpXF = 0.1 ; Change the size and location of the
resources@vpYF = 0.9 ; plot on the viewport.
resources@vpWidthF = 0.7
resources@vpHeightF = 0.7
resources@gsnScale = True ; Force X/Y axes labels to be the same size.
resources@gsnFrame = False ; Don't advance frame.
map = gsn_contour_map(wks,Z(6,5,:,:)*0.1,resources) ; Convert pf to "mb" and
; draw contours over map.
txres = True ; Set some resources
txres@txFontHeightF = 0.025 ; for a text string.
txres@txFontColor = 4
gsn_text_ndc(wks,":F25:Pressure (mb)",.45,.25,txres) ; Draw a text string on the viewport.
frame(wks) ; Advance the frame.
就是在标题中连:F26:也直接显示出来了,在官网上也没找到怎么解决~
|
|