- 积分
- 5983
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2021-3-2
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 是冉冉升起的冉 于 2022-5-10 14:11 编辑
ncl画多年及平均的时间变化序列
data = new((/5,91/),float)
data(0,:) = u_17_norm
data(1,:) = u_18_norm
data(2,:) = u_19_norm
data(3,:) = u_20_norm
data(4,:) = u_21_norm
data1 = new((/6,91/),float)
data1(0,:) = u_17_norm
data1(1,:) = u_18_norm
data1(2,:) = u_19_norm
data1(3,:) = u_20_norm
data1(4,:) = u_21_norm
data1(5,:)=dim_avg_n_Wrap(data,0)
wks = gsn_open_wks ("png","/timeseries") ; send graphics to PNG file
;---Set plotting parameters
res = True ; plot mods desired
res@vpHeightF=0.35
res@vpWidthF=0.6
;res@xyLineColors = (/"blue","red","black","green","pink"/) ; change line color
res@trYMaxF = 3
res@trYMinF = -3
res@trXMaxF = 90
res@trXMinF = 0
res@tiYAxisString = "Normalized"
res@tiYAxisFontHeightF= 0.025
;res@tiXAxisString = "Years"
;res@tiXAxisFontHeightF= 0.025
res@xyMonoLineColor=False
res@xyLineThicknesses = (/ 3.0,3.0,3.0,3.0,3.0,5.0/) ; make second line thicker
res@xyDashPattern = 0 ;
;res@xyMarkLineModes = (/"MarkLines","MarkLines","MarkLines","MarkLines","MarkLines"/)
;res@xyMarkers = (/9,7,5,3,1/) ;
res@xyMarkerSizeF = 0.01 ;
res@xyLineColors = (/"yellow","red","blue","brown","green","black"/) ;
plot = gsn_csm_xy (wks,time,data1,res) ; create plot
end
|
|