I have been able to make myself a pretty little histogram that looks like this:

I was able to produce the image with the following code:
    import numpy as np
    import matplotlib.pyplot as plt
    plt.figure()  
    plt.axis([0, 6000, 0, 45000])  
    data['column'][data.value == 0].hist(bins=200, label='A') 
    data['column2'][data.value == 1].hist(bins=200, label='B')
    plt.title('A Histogram')  
    plt.xlabel('x-axis')  
    plt.ylabel('y-axis')  
    plt.legend()  
    return plt
Which is all fine and good, but the bins are not equal lengths. The only way I have been able to get the bins at equal lengths is to do something like this:
 bins=[0,100,200,300,400,.......)
Which is not pretty at all.
I have googled a bit and looked around here. The most popular answer to a similar question is this guy which suggests a seemingly excellent answer that I can not get to work for the life of me.
Thanks for your help!
 
     
    