Code that makes histograms for shape analysis