Re: [matplotlib-devel] boxplot notch

2010-01-20 Thread Steve.M
I also ran into this problem recently and was disappointed to find that the notch was based on a normal approximation. While there are a number of ways to calculate the notch size, it would be useful to allow the user to supply (either as an optional keyword, or as a vector input for the notch key

Re: [matplotlib-devel] boxplot notch

2009-12-21 Thread Andrew Straw
Andrew Straw wrote: > Also, I think that formula is only for normally distributed data. Which, > especially if you're using boxplots, medians, and quartiles, may not be > a valid assumption. > > Maybe we should at least raise a warning when someone uses notch=1. The > current implementation seem

Re: [matplotlib-devel] boxplot notch

2009-12-21 Thread Andrew Straw
Andrew Straw wrote: > Also, I think that formula is only for normally distributed data. Which, > especially if you're using boxplots, medians, and quartiles, may not be > a valid assumption. > > Maybe we should at least raise a warning when someone uses notch=1. The > current implementation seem

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] 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

Re: [matplotlib-devel] boxplot notch

2009-12-15 Thread Fernando Perez
On Tue, Dec 15, 2009 at 9:57 AM, Andrew Straw wrote: > >   notch_max = med + 1.57*iq/np.sqrt(row) >   notch_min = med - 1.57*iq/np.sqrt(row) > > Is this code actually calculating a meaningful value? If so, what? > >From the statistics ignoramus in the room, so take this with a grain of salt... I