- 积分
- 724
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-10-9
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
begin
x = (/1,2,3,4/)
y = (/78.31, 207.49, 83.76, 384.88/)
wks = gsn_open_wks("png","pre") ; send graphics to PNG file
res = True ; plot mods desired
res@gsnFrame = False ; don't advance frame yet
res@gsnXYBarChart = True ; turn on bar chart
res@gsnXYBarChartBarWidth = 0.75 ; change bar widths
res@gsnXYBarChartColors = (/"red","orange","green", "blue"/) ; choose colors
res@trYMinF = 0 ; bring bars down to zero
res@trYMaxF = 400
res@trXMinF = 0 ; adds space on either end
res@trXMaxF = 5 ; of the 1st and last bars
res@tiMainString = ""
plot = gsn_csm_xy (wks,x,y,res) ; create plot
end
不出图,请问是为什么?
|
|