Plotting lines approximating histograms