Re: [Matplotlib-users] standardizing x-axes in hist

2006-11-02 Thread Antonio Gonzalez
When building your histograms, define your bins by means of either 'arange' (to set the same bin width) or 'linspace' (to set equally-spaced bin limits). Eg, if all your histograms will have an x-axis ranging from 0 to 100, and you want the data in each of them plotted into 12 equally-spaced bins,

Re: [Matplotlib-users] standardizing x-axes in hist

2006-11-02 Thread Christopher Fonnesbeck
On Nov 1, 2006, at 2:15 PM, John Hunter wrote: >> "listservs" == listservs <[EMAIL PROTECTED]> writes: > > listservs> I am trying to produce a series of histograms of > listservs> related data, for which I want the ranges and scales of > listservs> the x-axes to be the same. How

Re: [Matplotlib-users] standardizing x-axes in hist

2006-11-01 Thread Chloe Lewis
Once the axes are the same, can one get the actual bars to align? hist () arranges them to look well in their original ranges, so they don't line up together, AFAICT: #plotting barcharts w/different ranges on same axis import pylab a = [1]*2 + [2]*3 + [3]*4 b = [3]*1 + [4]*2 + [5]*3 allim = (mi

Re: [Matplotlib-users] standardizing x-axes in hist

2006-11-01 Thread listservs
On Wednesday, November 01, 2006, at 02:17PM, "John Hunter" <[EMAIL PROTECTED]> wrote: >> "listservs" == listservs <[EMAIL PROTECTED]> writes: > >listservs> I am trying to produce a series of histograms of >listservs> related data, for which I want the ranges and scales of >listser

Re: [Matplotlib-users] standardizing x-axes in hist

2006-11-01 Thread John Hunter
> "listservs" == listservs <[EMAIL PROTECTED]> writes: listservs> I am trying to produce a series of histograms of listservs> related data, for which I want the ranges and scales of listservs> the x-axes to be the same. However, I dont see an listservs> obvious way of doing t

[Matplotlib-users] standardizing x-axes in hist

2006-11-01 Thread listservs
I am trying to produce a series of histograms of related data, for which I want the ranges and scales of the x-axes to be the same. However, I dont see an obvious way of doing this with hist, since specifying nbins will not guarantee the same axis for each. Is there some sort of hack that I