<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>OK It works</p>
<p>Thanks<br>
</p>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De :</b> Dennis Shea &lt;shea@ucar.edu&gt;<br>
<b>Envoyé :</b> jeudi 21 mai 2015 09:39<br>
<b>À :</b> mamadoulamine.mbaye@ucad.edu.sn<br>
<b>Cc&nbsp;:</b> Rick Brownrigg; ncl-talk@ucar.edu USERS<br>
<b>Objet :</b> Re: [ncl-talk] bin size</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">
<div>?? Did you read the documentation for pdfx? ??<br>
<br>
ap= pdfx(ucH,20,True)&nbsp;&nbsp; ; 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>
&nbsp; res@bin_bound_min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =0<br>
&nbsp; res@bin_bound_max&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =20<br>
&nbsp; res@bin_spacing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =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">&lt;<a href="mailto:mamadoulamine.mbaye@ucad.edu.sn" target="_blank">mamadoulamine.mbaye@ucad.edu.sn</a>&gt;</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 &lt;<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>&gt;<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&nbsp;:</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>&nbsp;</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.&nbsp; 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">&lt;<a href="mailto:mamadoulamine.mbaye@ucad.edu.sn" target="_blank">mamadoulamine.mbaye@ucad.edu.sn</a>&gt;</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(&quot;/home/data_climate_paper.txt&quot;,(/2484,4/),&quot;float&quot;)<br>
ucH=f(:,0)<br>
ucR=f(:,1)<br>
bcH=f(:,2)<br>
bcR=f(:,3)<br>
ap= pdfx(ucH,20,True)&nbsp;&nbsp;&nbsp;<br>
bp= pdfx(ucR,20,True)&nbsp; &nbsp;<br>
cp= pdfx(bcH,20,True) &nbsp;<br>
dp= pdfx(bcR,20,True) <br>
<br>
nVar&nbsp;&nbsp;&nbsp; = 4<br>
nBin&nbsp;&nbsp;&nbsp; = ap@nbins <br>
;plot&nbsp;&nbsp;&nbsp; = new ( nVar, &quot;graphic&quot;) &nbsp;<br>
xx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = new ( (/nVar, nBin/), typeof(ap))<br>
&nbsp; xx(0,:) = ap@bin_center&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp; xx(1,:) = bp@bin_center<br>
&nbsp; xx(2,:) = cp@bin_center<br>
&nbsp; xx(3,:) = dp@bin_center<br>
&nbsp; yy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = new ( (/nVar, nBin/), typeof(ap))<br>
&nbsp; yy(0,:) = (/ ap /)<br>
&nbsp; yy(1,:) = (/ bp /)<br>
&nbsp; yy(2,:) = (/ cp /)<br>
&nbsp; yy(3,:) = (/ dp /)<br>
;=========================================================================================<br>
&nbsp; wks&nbsp;&nbsp; = gsn_open_wks (&quot;x11&quot;, &quot;pdf_climate&quot; )<br>
res&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp; &nbsp;<br>
res@xyLineThicknesses&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = (/4.0,4.0,4.0,4.0/)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br>
&nbsp; res@xyLineColors&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = (/&quot;blue&quot;,&quot;red&quot;,&quot;green&quot;,&quot;orange&quot;/) &nbsp;<br>
&nbsp; res@xyMonoDashPattern&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; all solid <br>
&nbsp; res@tiYAxisString&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;PDF (%)&quot;<br>
&nbsp; res@trXMinF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0<br>
&nbsp; res@trXMaxF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 40<br>
&nbsp; res@gsnXYBarChart&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; Create bar plot<br>
&nbsp; res@gsnXYBarChartOutlineOnly = True<br>
&nbsp; res@bin_bound_min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =0<br>
&nbsp; res@bin_bound_max&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =20<br>
&nbsp; res@bin_spacing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =5<br>
&nbsp;<br>
<br>
&nbsp; res@tiMainString&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;Probabilty Density Functions&quot;<br>
&nbsp; 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>
</div>
</div>
</div>
</body>
</html>