It'd be cool if we could do something like

bins = [(0.0,0.05,0.1),(0.05,0.1,0.15)...]

Where I have specified the left edge, center and right edge of each 
bin. Yeah, that'd be pretty slick.

S

On Sat Oct 20 16:21:41 2012, Steven Boada wrote:
> Let's say I generate a bunch of random numbers from 0-1. Then, I'd
> like to make a histogram of it. But here's the clincher. I'd like my
> bins to overlap a bit. For example, if the first bin is from 0 - 0.1,
> centered on 0.05, I'd like the next (second) bin to be centered on 0.1
> and range from 0.05 - 0.15.
>
> So basically, I want the width of each bin to be greater than the
> spacing.
>
> Is this something that could be done with the histogram function? I
> did a couple of google searches and couldn't come up with anything
> meaningful. Apparently, 'rwidth' in the hist function just makes the
> displayed bars bigger or smaller.
>
> Any thoughts?
>

--

Steven Boada

Doctoral Student
Dept of Physics and Astronomy
Texas A&M University
bo...@physics.tamu.edu

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to