uphist function

uphist a histogram with an upper limit on the x-axis