Add histogram nbins, xmin and xmax variables