- 积分
- 9007
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-2-27
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 里斯斯里 于 2019-6-28 13:27 编辑
- begin
- _getvar = asciiread("Chengde_T_1", -1, "float")
- y = new(dimsizes(_getvar), typeof(_getvar), -999.9)
- y = _getvar
- y@_FillValue = -999.9
- time = ispan(1, dimsizes(y), 1)
- res = True
- res@xyMarkLineMode = "Lines"
- res@xyDashPattern = 5
- res@xyMarker = 0
- res@gsnCenterString = "xyMarkLineMode = 'Lines'"
- wks_1 = gsn_open_wks("png", "plot1")
- plot_1 = gsn_csm_xy(wks_1, time, y, res)
- res@xyMarkLineMode = "MarkLines"
- res@gsnCenterString = "xyMarkLineMode = 'MarkLines'"
- wks_2 = gsn_open_wks("png", "plot2")
- plot_2 = gsn_csm_xy(wks_2, time, y, res)
- end
复制代码 由于画图的数据存在缺测值(-999.9),在xy二维坐标图上能画散点图,但是连起来的折线图就是画不出来,请大佬帮忙看看,感激不尽。
数据格式和上图代码画的两张图如下所示:
|
-
部分数据的截图
-
脚本图片1
-
脚本图片二
-
-
Chengde_T_1
4.51 KB, 下载次数: 0, 下载积分: 金钱 -5
画图数据
|