- 积分
- 1143
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-2-21
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 气象妹子 于 2015-10-29 21:40 编辑
这是一个相关图,,阴影代表通过95%置信水平,,我想把陆地设为灰色,,但是使用了 res@mpLandFillColor 没有效果,但是当我把res@cnFillOn = False后陆地颜色就能改变了,,不知道是怎么回事。。。还希望大家能帮我看一下。脚本如下:
wks = gsn_open_wks("pdf","d:/indonesia/ncl/corr2012DJF") ; open a ps plot
gsn_define_colormap(wks,"rainbow+white+gray") ; choose colormap
plot = new(1,graphic)
res = True
res@gsnDraw = False
res@gsnFrame = False
res@cnFillOn = True
res@lbLabelBarOn = False
res@cnLinesOn = True
res@cnLineLabelsOn = True
res@tmXBLabelFontHeightF = 0.015
res@tmYLLabelFontHeightF = 0.015
res@gsnAddCyclic = True
;res@mpCenterLonF = 180.
res@mpMinLonF = 60.
res@mpMaxLonF = 160.
res@mpMinLatF = -30.
res@mpMaxLatF = 30.
res@cnSmoothingOn = True
res@cnSmoothingDistanceF = 0.001
res@cnSmoothingTensionF = -2
;---About the contour
res@cnLabelMasking = True
res@cnLineDashSegLenF = 0.1 ;the density of the mark on the contour
res@cnLevelSpacingF = 2
res@cnLineThicknessF = 0.6
res@cnLineLabelFontHeightF = 0.008
res@cnLineLabelFontThicknessF = 0.005
res@cnLineLabelFormat = "@^sg" ;eg:change .5 to 0.5
res@gsnContourNegLineDashPattern = 2 ; sets negative contours to dash pattern 1
res@cnLevelSelectionMode = "ExplicitLevels"
res@cnLevels = (/-0.8,-0.6,-0.34,-0.3,0,0.3,0.34,0.6,0.8/)
res@cnFillColors = (/76,84,90,0,0,0,0,183,191,196/)
res@mpLandFillColor = 239
plot(0) = gsn_csm_contour_map_ce(wks,ccr4,res)
;************************************************
; panel res
;************************************************
pres = True
pres@gsnFrame = False
pres@gsnPanelLabelBar = True
pres@pmLabelBarWidthF = 0.8
pres@pmLabelBarOrthogonalPosF = -0.0
pres@lbLabelFontHeightF = 0.015
pres@gsnPanelYWhiteSpacePercent = 2
pres@gsnPanelXWhiteSpacePercent = 0
gsn_panel(wks,plot,(/1,1/),pres)
frame(wks)
|
|