qtgui: fixed histogram autoscaling features. Added example script.
qtgui: fixing variable names to make it more like the rest of the code.