Re: [matplotlib-devel] boxplot notch

2009-12-18 Thread Andrew Straw
Pierre GM wrote: > On Dec 18, 2009, at 10:34 PM, Andrew Straw wrote: > >> Fernando Perez wrote: >> >>> On Fri, Dec 18, 2009 at 2:28 PM, Andrew Straw wrote: >>> >>> (This still leaves open the question of what the notches actually _are_...) >>> No idea. I'd s

Re: [matplotlib-devel] boxplot notch

2009-12-18 Thread Andrew Straw
Fernando Perez wrote: > On Fri, Dec 18, 2009 at 2:28 PM, Andrew Straw wrote: > >> (This still leaves open the question of what the notches actually _are_...) >> > > No idea. I'd still leave the code instead written as > > notch_max = med + (iq/2) * (pi/np.sqrt(row)) > Further searching

Re: [matplotlib-devel] boxplot notch

2009-12-18 Thread Fernando Perez
On Fri, Dec 18, 2009 at 2:28 PM, Andrew Straw wrote: > (This still leaves open the question of what the notches actually _are_...) No idea. I'd still leave the code instead written as notch_max = med + (iq/2) * (pi/np.sqrt(row)) as that's what it appears to be doing (unless 1.57 is *not* pi/2

Re: [matplotlib-devel] should mlab.prctile(x,50) == np.median(x)?

2009-12-18 Thread Andrew Straw
Andrew Straw wrote: > The following (uncommitted) test currently fails. The reason is that > mlab.prctile(x,50) doesn't handle even length sequences according to the > numpy and wikipedia convention for the definition of median. Do we agree > that it should pass? > I'll take the silence as +0

Re: [matplotlib-devel] boxplot notch

2009-12-18 Thread Andrew Straw
Fernando Perez wrote: > Note that the code below does: > > if notch_max > q3: > notch_max = q3 > if notch_min < q1: > notch_min = q1 > > though matlab explicitly states in: > > http://www.mathworks.com/access/helpdesk/help/tool