<div dir="ltr"><div>?? Did you read the documentation for pdfx? ??<br><br>ap= pdfx(ucH,20,True) ; your code<br><pre> opt = True
opt@bin_min = 0.0
opt@bin_max = 20.0<br> ;opt@bin_nice= True ; if activated 'nbin' will be ignored<br> nbin = 20 ; you could increase this
ap = <b>pdfx</b>(ucH, nbin, opt) </pre>These should be deleted. <br><br> res@bin_bound_min =0<br>
res@bin_bound_max =20<br>
res@bin_spacing =5<br><br>=================================<br><br></div>I think you should look at NCL's <br><br><a href="https://www.ncl.ucar.edu/Applications/histo.shtml">https://www.ncl.ucar.edu/Applications/histo.shtml</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 21, 2015 at 10:19 AM, <a href="mailto:mamadoulamine.mbaye@ucad.edu.sn">mamadoulamine.mbaye@ucad.edu.sn</a> <span dir="ltr"><<a href="mailto:mamadoulamine.mbaye@ucad.edu.sn" target="_blank">mamadoulamine.mbaye@ucad.edu.sn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi,</p>
<p>I have seen three inputs only : </p>
<pre>function pdfx (
                x : numeric,
                nbin [1] : integer,
                opt [1] : logical
        )<br>the others are in the return value.<br></pre>
<p><br>
</p>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De :</b> Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>><br>
<b>Envoyé :</b> jeudi 21 mai 2015 08:58<br>
<b>À :</b> <a href="mailto:mamadoulamine.mbaye@ucad.edu.sn" target="_blank">mamadoulamine.mbaye@ucad.edu.sn</a><br>
<b>Cc :</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a> USERS<br>
<b>Objet :</b> Re: [ncl-talk] bin size</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">
<div>
<div>
<div>Hi,<br>
<br>
</div>
Those resources in the warning messages are inputs to the pdfx() functions, not to the graphics functions. See:<br>
<br>
<a href="http://ncl.ucar.edu/Document/Functions/Contributed/pdfx.shtml" target="_blank">http://ncl.ucar.edu/Document/Functions/Contributed/pdfx.shtml</a><br>
<br>
</div>
Hope that helps...<br>
</div>
Rick<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, May 21, 2015 at 9:41 AM, <a href="mailto:mamadoulamine.mbaye@ucad.edu.sn" target="_blank">
mamadoulamine.mbaye@ucad.edu.sn</a> <span dir="ltr"><<a href="mailto:mamadoulamine.mbaye@ucad.edu.sn" target="_blank">mamadoulamine.mbaye@ucad.edu.sn</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div 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>
</div>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>
</div>
</div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>