Update twodim_base.py

Update histogram2d example according to http://www.scipy.org/Cookbook/Histograms for variable bin size.