updated plot.sh