<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Dear,</p>
<p>I would like to reduce the size of the bins for a PDF plot, I got these errors:
</p>
<p>==========<br>
</p>
<p>warning:bin_bound_min is not a valid resource in pdf_climate_xy at this time<br>
warning:bin_bound_max is not a valid resource in pdf_climate_xy at this time<br>
warning:bin_spacing is not a valid resource in pdf_climate_xy at this time</p>
<p>=============</p>
<p>here is the script:</p>
<p><br>
f =asciiread("/home/data_climate_paper.txt",(/2484,4/),"float")<br>
ucH=f(:,0)<br>
ucR=f(:,1)<br>
bcH=f(:,2)<br>
bcR=f(:,3)<br>
ap= pdfx(ucH,20,True) <br>
bp= pdfx(ucR,20,True) <br>
cp= pdfx(bcH,20,True) <br>
dp= pdfx(bcR,20,True) <br>
<br>
nVar = 4<br>
nBin = ap@nbins <br>
;plot = new ( nVar, "graphic") <br>
xx = new ( (/nVar, nBin/), typeof(ap))<br>
xx(0,:) = ap@bin_center <br>
xx(1,:) = bp@bin_center<br>
xx(2,:) = cp@bin_center<br>
xx(3,:) = dp@bin_center<br>
yy = new ( (/nVar, nBin/), typeof(ap))<br>
yy(0,:) = (/ ap /)<br>
yy(1,:) = (/ bp /)<br>
yy(2,:) = (/ cp /)<br>
yy(3,:) = (/ dp /)<br>
;=========================================================================================<br>
wks = gsn_open_wks ("x11", "pdf_climate" )<br>
res = True <br>
res@xyLineThicknesses = (/4.0,4.0,4.0,4.0/) <br>
res@xyLineColors = (/"blue","red","green","orange"/) <br>
res@xyMonoDashPattern = True ; all solid <br>
res@tiYAxisString = "PDF (%)"<br>
res@trXMinF = 0<br>
res@trXMaxF = 40<br>
res@gsnXYBarChart = True ; Create bar plot<br>
res@gsnXYBarChartOutlineOnly = True<br>
res@bin_bound_min =0<br>
res@bin_bound_max =20<br>
res@bin_spacing =5<br>
<br>
<br>
res@tiMainString = "Probabilty Density Functions"<br>
plot = gsn_csm_xy (wks, xx, yy, res)<br>
end<br>
</p>
</div>
</body>
</html>