登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 礼乐王 于 2017-3-31 21:02 编辑
求大神指导 图三是图一和图二的叠加,不知道怎么回事 求指导 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
|