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 = (min(min(a),min(b)), max(max(a),max(b))) top = pylab.subplot(211) vala, bina, patcha = pylab.hist(a) #top.set_xlim(allim) #doesn't work here bot = pylab.subplot(212, sharex=top) valb, binb, patchb = pylab.hist(b) top.set_xlim(allim) pylab.show() ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users