script for making plots