Range selection in histogram