Re: boxplot

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Thu Oct 18 2012 - 09:18:13 MDT

Hello,
First, thank you for sending your data and a easy-to-read script so we
can test things here. I don't know what data so2.txt is supposed to
represent, but according to the documentation the boxplot function
expects the input y array to be dimensioned (number of boxes, 5), and
each of the 5 values represent a specific reference point:
http://www.ncl.ucar.edu/Document/Functions/Shea_util/boxplot.shtml
"y = A two-dimensional array, where the rightmost dimension contains
the box plot reference pt. data. y(n,0)=bottom_value,
y(n,1)=bottom_value_of_box,
y(n,2)=mid-value_of_box,y(n,3)=top_value_of_box,y(n,4)=top_value."

The data you sent has 9 columns by 365 rows, and in your script your y
input array is dimensioned (9,365). In this case ncl will draw 9 boxes
but only use the first 5 values of your 2nd dimension.

For a simple example of how to use the boxplot function, see example #1
on the boxplot page here:
http://www.ncl.ucar.edu/Applications/box.shtml
Good luck,
Adam

On 10/18/2012 02:47 AM, nlcheng wrote:
> I have upload the script and the data .
> When I run the script it turns out the drawing of boxplot .
> but the box is in a mess ;
> I do not know what is wrong!
> hope for your help!
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
______________________________________________________________
Adam Phillips                                asphilli@ucar.edu
NCAR/Climate and Global Dynamics Division       (303) 497-1726
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Oct 18 09:18:39 2012

This archive was generated by hypermail 2.1.8 : Tue Oct 23 2012 - 11:10:04 MDT