Moved plotting functions to separate plotting script.