finished scripts for slide plotting