- 积分
- 6797
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2019-1-15
- 最后登录
- 1970-1-1
|
发表于 2021-5-10 14:34:16
|
显示全部楼层
部分代码如下- plot_tp = gsn_csm_xy(wks, year, tp_avg, res) ;底图
- ;====================res====================
- xyres = True
- xyres@gsnDraw = False ; don't draw yet
- xyres@gsnFrame = False
- xyres@xyLineThicknessF = 3.0 ; default is 1.0
- xyres@xyLineColor = "black"
- xyres@tmXBOn = False
- xyres@tmXTOn = False
- xyres@tmYLOn = False
- xyres@tmYROn = False
- xyres@gsnLeftStringOrthogonalPosF= 0.05
- xyres@tmXBValues = year
- xyres@trXMinF = 1980
- xyres@trXMaxF = 2020
- ;==================底图大小=================
- getvalues plot_tp
- "vpXF" : vpx
- "vpYF" : vpy
- "vpWidthF" : vpw
- "vpHeightF" : vph
- end getvalues
- xyres@vpXF = vpx
- xyres@vpYF = vpy
- xyres@vpWidthF = vpw
- xyres@vpHeightF = vph
- xyres@trYMaxF = 200.0 ;底图Y轴最大值
- xyres@trYMinF = -200.0 ;最小值
- xyres@gsnLeftString =" "
- xyres@xyDashPattern = 1
- ;=================叠加图=====================
- xyres@xyLineColor = "green"
- xyres@xyDashPattern = 0
- xy_run_tp = gsn_csm_xy(wks, year, run_tp, xyres)
- annot =gsn_add_annotation(plot_tp, xy_run_tp, False)
复制代码 |
评分
-
查看全部评分
|