- 积分
- 997
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2019-2-13
- 最后登录
- 1970-1-1
|
发表于 2019-12-17 15:15:30
|
显示全部楼层
res_nc@cnFillOn = False ; 关闭图形填充等值线
res_nc@cnLinesOn = True ; 绘制等值线
res_nc@cnInfoLabelOn = False
res_nc@cnLineDashPattern = 0 ; 线型为1虚线
res_nc@cnLevelSelectionMode = "ExplicitLevels" ; 默认值“AutomaticLevels”表示自动选择等值线。其余还有“ExplicitLevels”、“ManualLevels”
res_nc@cnLevels = (/980,985,990,995,1000,1005,1010,1020,1025,1030,1035,1040,1045,1050,1055,1060/)
; 等值线颜色填充
cmap = (/(/80./255,0./255,80./255/),\ ;; 1
(/134./255,0./255,134./255/),\ ;; 2
(/187./255,0./255,187./255/),\ ;; 3
(/241./255,0./255,241./255/),\ ;; 4
(/255./255,80./255,255./255/),\ ;; 5
(/255./255,134./255,255./255/),\ ;; 6
(/255./255,187./255,255./255/),\ ;; 7
(/255./255,255./255,255./255/),\ ;; 8
(/230./255,255./255,255./255/),\ ;; 9
(/200./255,255./255,190./255/),\ ;; 10
(/180./255,250./255,170./255/),\ ;; 11
(/150./255,245./255,140./255/),\ ;; 12
(/120./255,245./255,115./255/),\ ;; 13
(/80./255,240./255,80./255/),\ ;; 14
(/55./255,210./255,60./255/),\ ;; 15
(/30./255,180./255,30./255/),\ ;; 16
(/15./255,160./255,15./255/)/) ;; 17
res_nc@cnFillColors = cmap ; 色板颜色 "OceanLakeLandSnow" "cmp_haxby"
; 等值线设置
res_nc@cnLinesOn = True ; 没有轮廓线
res_nc@cnLineDashPattern = 0 ; 线型为1虚线
res_nc@cnLineColor = "black" ; 线颜色
res_nc@cnLineThicknessF = 1.5 ; 0.03倍粗细
; 等值线数值标签
res_nc@cnLineLabelsOn = True ; 打开等值线数值标签
res_nc@cnLineLabelAngleF = 0.0 ; 标签角度
res_nc@cnLineLabelPerimOn = True ; 添加边框
res_nc@cnLineLabelPerimColor = "white" ; 边框颜色
res_nc@cnLineLabelBackgroundColor = "white" ; 边框内的颜色
res_nc@cnLineLabelPlacementMode = "Computed" ; 绘制标签的算法
res_nc@cnLineLabelDensityF = 0.1 ; 修改等值线上标签数目的相对密度
res_nc@cnLineLabelFontHeightF = 0.008 ; 等值线标签字体大小
res_nc@cnLineLabelFontColor = "black" ; 等值线标签字体颜色
; plot_min = gsn_csm_contour(wks,var,res_nc)
plot_min = gsn_csm_contour(wks,Datas,res_nc) |
|