- 积分
- 3885
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2018-8-7
- 最后登录
- 1970-1-1
|
发表于 2019-12-10 22:55:28
|
显示全部楼层
;添加短线
resl = True
; resl@gsFillColor = "red"
resl@gsLineColor = "green"
resl@gsLineThicknessF= 8.0
resl@tfPolyDrawOrder = "Draw" ; this can be used for polylines, polymarkers, or polygons
nwx= (/75.25,87.25,81.25,70.25,75.25/)
nwy= (/27.75,22.25,16.75,23.75,27.75/)
nwx1 = (/102.25,102.25,96.75,96.75,85.25,85.25,87.25,87.25,102.25/)
nwy1 = (/32.75,27.25,27.25,25.75,25.75,27.25,27.25,32.75,32.75/)
plot0 = gsn_add_polyline(wks,map,nwx(:1),nwy(:1),resl) ;map为要添加折线的图形
plot1 = gsn_add_polyline(wks,map,nwx(1:2),nwy(1:2),resl)
plot2 = gsn_add_polyline(wks,map,nwx(2:3),nwy(2:3),resl)
plot3 = gsn_add_polyline(wks,map,nwx(3:4),nwy(3:4),resl)
plot_0 = gsn_add_polyline(wks,map,nwx1(:1),nwy1(:1),resl)
plot_1 = gsn_add_polyline(wks,map,nwx1(1:2),nwy1(1:2),resl)
plot_2 = gsn_add_polyline(wks,map,nwx1(2:3),nwy1(2:3),resl)
plot_3 = gsn_add_polyline(wks,map,nwx1(3:4),nwy1(3:4),resl)
plot_4 = gsn_add_polyline(wks,map,nwx1(4:5),nwy1(4:5),resl)
plot_5 = gsn_add_polyline(wks,map,nwx1(5:6),nwy1(5:6),resl)
plot_6 = gsn_add_polyline(wks,map,nwx1(6:7),nwy1(6:7),resl)
plot_7 = gsn_add_polyline(wks,map,nwx1(7:8),nwy1(7:8),resl)
draw(map)
frame(wks)
这样或许好一点点 |
|