This should be a common function for all plotting scripts.
Activity