added bin selecting in histogram plotter