shell script for plotting and viewing