<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    As I stated yesterday, instead of passing in 5 values per box as the
    documentation states is required, you are passing in 365 values.&nbsp;
    The box plot function wants 5 values in ascending order as is stated
    in the documentation and as is shown in example #1 here:<br>
    <a class="moz-txt-link-freetext" href="http://www.ncl.ucar.edu/Applications/box.shtml#ex1">http://www.ncl.ucar.edu/Applications/box.shtml#ex1</a><br>
    <br>
    Modifying some coding from example #1 to simplify it:<br>
    <pre>yval = new((/2,5/),"float",-999.)
yval(0,0) = -3.
yval(0,1) = -1.
yval(0,2) = 1.5
yval(0,3) = 4.2
yval(0,4) = 6.
  
yval(1,0) = -1.
yval(1,1) = 0.
yval(1,2) = 1.
yval(1,3) = 2.5
yval(1,4) = 4.

wks = gsn_open_wks("ps","box") 
x = (/-3., -1./)        
plot = boxplot(wks,x,yval,False,False,False)
</pre>
    <p>Note that for box #1 and #2, the values are increasing within the
      yval (0,:) and yval(1,:) arrays. The boxplot function simply plots
      boxes given the input y array values <i>in the order they are
        present in the y array</i>.<br>
    </p>
    I am not sure what the data in the file you attached is supposed to
    represent:<br>
    <pre wrap="">9.75        24        9.375        9        8.25        5.25        12.375        24        11.625
4.125        14.625        12        10.125        8.625        11.25        12        12.375        11.625
7.5        17.625        12.375        8.625        13.5        10.5        10.875        17.25        12
9.375        24.375        9.375        9.375        17.25        13.125        22.5        13.875        9.375
6.75        23.25        11.25        11.25        11.25        11.25        29.625        19.875        16.125
3.75        28.5        10.125        8.625        14.25        10.5        21.75        16.5        6
4.5        26.625        9.375        5.625        10.5        9.375        13.875        14.25        13.125
4.875        13.875        12.375        6        12.75        14.625        18.375        18.375        10.875

</pre>
    I ran your code on the input data, and I got the plot that I
    attached. Looking at your input data/coding, you are passing these
    values in as box #1: 9.75, 4.125, 7.5, 9.375, and 6.75. Looking at
    the first box plot in the attached box.png, those values are the
    ones that are being used to draw the box. If you wanted boxplot to
    draw each boxplot as you desire, you would have to input the values
    <i>in ascending order</i>. For instance, box #1's values would have
    to be 4.125, 6.75, 7.5, 9.375, and 9.75.<br>
    <br>
    Please look at boxplot example #1 and try modifying/running it so
    you can further understand how the boxplot function works. Adam<br>
    <br>
    <div class="moz-cite-prefix">On 10/18/2012 09:17 PM, nlcheng wrote:<br>
    </div>
    <blockquote
      cite="mid:2f6c3c83.3ea2.13a7706648d.Coremail.cnl88@163.com"
      type="cite">
      <div
        style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">
        <div>&nbsp;</div>
        <div id="isForwardContent">
          <div style="LINE-HEIGHT: 1.7; FONT-FAMILY: arial; COLOR:
            #000000; FONT-SIZE: 14px">
            <div>I have uploaded &nbsp;the script and the data .</div>
            <div>When I run the script&nbsp;&nbsp; it turns out the drawing of
              boxplot like</div>
            <div>&nbsp;this</div>
            <div><img style="WIDTH: 412px; HEIGHT: 331px"
                src="cid:part1.06090208.01050204@ucar.edu"
                orgwidth="762" orgheight="503" height="377" width="497"></div>
            <div>&nbsp;</div>
            <div>but the box&nbsp;is in a mess&nbsp; ; not <img style="HEIGHT:
                82px" src="cid:part2.09050909.07010708@ucar.edu"
                orgwidth="69" orgheight="234" height="82" width="75"></div>
            <div>I do not know what is wrong!</div>
            <div>hope for your help!&nbsp; </div>
            <div>&nbsp;</div>
          </div>
          <br>
          <br>
          <span title="neteasefooter"><span id="netease_mail_footer"></span></span></div>
      </div>
      <br>
      <br>
      <span title="neteasefooter"><span id="netease_mail_footer"></span></span>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
<a class="moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
______________________________________________________________
Adam Phillips                                <a class="moz-txt-link-abbreviated" href="mailto:asphilli@ucar.edu">asphilli@ucar.edu</a>
NCAR/Climate and Global Dynamics Division       (303) 497-1726    
P.O. Box 3000                                  
Boulder, CO 80307-3000    <a class="moz-txt-link-freetext" href="http://www.cgd.ucar.edu/cas/asphilli">http://www.cgd.ucar.edu/cas/asphilli</a>
</pre>
  </body>
</html>