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 can use to do this (or
> an argument I am overlooking?).
You can force axes in the same figure to share the same xaxes
ax1 = subplot(211)
ax2 = subplot(212, sharex=ax1)
then any changes (panning and zooming) in one will be instantaneously
reflected in the other.
For axes in different figures, you can set the xlim manually
There is more sophisticated stuff you can do with observers and event
handling to couple axes between figures in the presence of panning and
zooming if need be.