爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 6470|回复: 0

[作图] 这个图怎么画,好揪心

[复制链接]
发表于 2015-1-9 17:09:33 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
刚刚开始学习
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"  
begin
filename="$NCARG_ROOT/lib/ncarg/data/asc/xy.asc"
wks = gsn_open_wks("png","SO2")
data =asciiread("data1.txt",(/8653,1/),"integer")
y =data(21::24,0)
res                   = True                     ; plot mods desired
res@tiMainString      = "2013-2014 SO2"           ; add title
res@xyMarkLineModes   = "MarkLines"                ; choose which have markers
res@xyMarkers         = 11                     ; choose type of marker  
res@xyMarkerColor     = "red"               ; Marker color
res@xyMarkerSizeF     = 0.01                     ; Marker size (default 0.01)
res@trYMinF =       0                ; set minimum Y-axis value
res@trYMaxF =       1000
res@trXMinF         = 2013        ; set minimum X-axis value
res@trXMaxF         = 2014        ; set maximum X-axis value
res@tiYAxisString    = "so2 discharge"    ; y-axis label      
res@tiXAxisString    ="time"
res@tmXBMode        = "Manual"       
res@tmXBTickStartF  = 2013
res@tmXBTickEndF    = 2014
res@tmLabelAutoStride = True                     ; nice tick mark labels
plot=gsn_xy(wks,time,y,res)

end

本身就没有时间的那一列数据,我是取一年中每天同一时间的数据作图。
可是为什么做出来是这样。。。time怎么写。
SO2.png
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表