From 2ebc9c2eeaeb03df85f21f6c593e64d3b8218658 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Sat, 24 May 2008 22:22:46 -0400 Subject: extracted the plotting tools from csvtools --- csv2graph | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 csv2graph (limited to 'csv2graph') diff --git a/csv2graph b/csv2graph new file mode 100755 index 0000000..8f7d795 --- /dev/null +++ b/csv2graph @@ -0,0 +1,23 @@ +#!/bin/bash + +FILE=$1 + +shift + +if [ ! -f "$FILE" ] ; then + echo "Usage: csv2graph " +fi + +CUM=`mktemp` +DIST=`mktemp` +OUT=`echo $FILE | sed s/csv/png/` + +analyze -adist -b1000 "$FILE" --csv -n -i $* > $DIST +analyze -adist -c -b1000 "$FILE" --csv -n -i $* > $CUM + +if [ -s $CUM ] && [ -s $DIST ]; then + plot_dist $DIST $CUM $OUT "$FILE: $*" + rm $DIST $CUM +else + echo "$FILE: Empty." +fi -- cgit v1.2.2