Re: [Matplotlib-users] inconsistent spacing in histograms

2010-10-25 Thread Maarten Sneep
On Fri, 2010-10-22 at 13:39 -0500, Ryan May wrote: Thanks for that. This actually led me here: http://en.wikipedia.org/wiki/Histogram which gives a bunch of different ways to estimate the number of bins/binsize. It might be worth looking at one of these in general. However, ironically enough,

[Matplotlib-users] inconsistent spacing in histograms

2010-10-22 Thread Christopher Fonnesbeck
I notice that when the number of bins in a histogram is sparse, the spacing between the bins can be irregular. For example: http://cl.ly/7e0ad7039873d5446365 http://cl.ly/c7cb20b567722928ac3c Is there a way of normalizing this, and better, can the default behavior result in something more

Re: [Matplotlib-users] inconsistent spacing in histograms

2010-10-22 Thread Ryan May
On Fri, Oct 22, 2010 at 8:47 AM, Christopher Fonnesbeck statist...@me.com wrote: I notice that when the number of bins in a histogram is sparse, the spacing between the bins can be irregular. For example: http://cl.ly/7e0ad7039873d5446365 http://cl.ly/c7cb20b567722928ac3c Is there a way of

Re: [Matplotlib-users] inconsistent spacing in histograms

2010-10-22 Thread Christopher Fonnesbeck
On Oct 22, 2010, at 9:13 AM, Ryan May wrote: On Fri, Oct 22, 2010 at 8:47 AM, Christopher Fonnesbeck statist...@me.com wrote: I notice that when the number of bins in a histogram is sparse, the spacing between the bins can be irregular. For example: http://cl.ly/7e0ad7039873d5446365

Re: [Matplotlib-users] inconsistent spacing in histograms

2010-10-22 Thread Ryan May
On Fri, Oct 22, 2010 at 9:40 AM, Christopher Fonnesbeck statist...@me.com wrote: On Oct 22, 2010, at 9:13 AM, Ryan May wrote: On Fri, Oct 22, 2010 at 8:47 AM, Christopher Fonnesbeck statist...@me.com wrote: I notice that when the number of bins in a histogram is sparse, the spacing between

Re: [Matplotlib-users] inconsistent spacing in histograms

2010-10-22 Thread Maarten Sneep
On Fri, 2010-10-22 at 11:12 -0500, Ryan May wrote: On Fri, Oct 22, 2010 at 9:40 AM, Christopher Fonnesbeck If there are only 7 possible values of the data, which are evenly-spaced, it should probably not go in and create more than 6 bins as the default behavior. I know I can specify bins by

Re: [Matplotlib-users] inconsistent spacing in histograms

2010-10-22 Thread Ryan May
On Fri, Oct 22, 2010 at 11:31 AM, Maarten Sneep maarten.sn...@knmi.nl wrote: On Fri, 2010-10-22 at 11:12 -0500, Ryan May wrote: On Fri, Oct 22, 2010 at 9:40 AM, Christopher Fonnesbeck If there are only 7 possible values of the data, which are evenly-spaced, it should probably not go in and