create a 1D histogram from a 1D graph