Cleaning up histogram plotting routines and examples.