Fixed histogram so that it re-adds the button handler after updating the axis.