1d histogram