add setting of number of bins to histogram plotter