This patch includes the following:
1. Fixes histogram bugs
2. Removes the recalculate button as it was not working properly and redraw on value update instead.
3. Fix autoscaling functionality for histograms. (still has a minor bus, which will be solved when we will have vertical histograms)
I have also pushed the code to histogram_vertical branch, you can check that out to test it.