- 积分
- 3197
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-11-9
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2017-3-31 14:47:25
|
显示全部楼层
begin
dev = asciiread("./dev.txt",-1,"float")
opt = True
opt@bin_min = -20.
opt@bin_max = 20.
a = pdfx(dev,0,opt)
wks = gsn_open_wks ("X11","PDF")
res = True
res@xyLineThicknessF = 2.
res@xyLineColors = "blue"
res@xyDashPatterns = "dash"
plot = gsn_csm_xy (wks,a@bin_center,a,res)
res1 = True
res1@gsnHistogramComputePercentages = True
res1@gsnHistogramPercentSign = True
res1@tiYAxisString = "number"
res1@tiXAxisString = "error (m/s)"
res1@gsnHistogramBarWidthPercent = 90.
res1@tiMainString = "Bar width is 80% of bin width"
res1@tmXBLabelStride = 10
res1@gsnHistogramBinIntervals = ispan(-20,20,1)
mplot = gsn_histogram(wks,dev,res1)
overlay(mplot,plot)
draw(mplot)
frame(wks)
end
这是脚本 ,大神帮忙看一下问题所在
|
|