deleted plot script from total_dynamix
compacted and standardized plotting code