Add capability for plotting histograms from x and y values