<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>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 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> Rick Brownrigg <brownrig@ucar.edu><br>
<b>Envoyé :</b> jeudi 21 mai 2015 08:58<br>
<b>À :</b> mamadoulamine.mbaye@ucad.edu.sn<br>
<b>Cc :</b> ncl-talk@ucar.edu USERS<br>
<b>Objet :</b> Re: [ncl-talk] bin size</font>
<div> </div>
</div>
<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">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">
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>
</body>
</html>