#! /bin/sh # file: plotresults.sh G. Moody 23 March 2012 # # Plot results generated using genresults.sh # # This script requires plt (http://physionet.org/physiotools/plt/) and # ImageMagick (http://www.imagemagick.org/). After running genresults.sh # to generate its input files (Score-a.txt and Plot-a.txt), run it as # plotresults.sh a # to produce EPS- and PNG-format plots (results.eps and results.png). S=$1 E1=`grep "Event 1" results-$S.eps convert -density 100x100 results-$S.eps results-$S.png