Added the ability to cap to force a the range of values the histogram covers