From 8879b125d26e8db1a5633de5a9c692eb2d1c4f83 Mon Sep 17 00:00:00 2001 From: Ashlee Young Date: Wed, 9 Sep 2015 22:21:41 -0700 Subject: suricata checkin based on commit id a4bce14770beee46a537eda3c3f6e8e8565d5d0a Change-Id: I9a214fa0ee95e58fc640e50bd604dac7f42db48f --- .../src/suricata/qa/gnuplot/plot-csv-large-all.sh | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 framework/src/suricata/qa/gnuplot/plot-csv-large-all.sh (limited to 'framework/src/suricata/qa/gnuplot/plot-csv-large-all.sh') diff --git a/framework/src/suricata/qa/gnuplot/plot-csv-large-all.sh b/framework/src/suricata/qa/gnuplot/plot-csv-large-all.sh new file mode 100755 index 00000000..f3484fd7 --- /dev/null +++ b/framework/src/suricata/qa/gnuplot/plot-csv-large-all.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# +# +if [ "$1" = "" ]; then + echo "call with location of csv file." + exit 1; +fi + +gnuplot << EOF +set datafile separator "," +set terminal png size 1024,768 +set output "$1.png" +set title "$1 ticks" +set key autotitle columnhead +set yrange [:] +set xrange [:] +set logscale y +#set pointsize 4 +plot "$1" using $2 with $4, for [i in $3] '' using i with $4 +EOF +RESULT=$? +if [ "$RESULT" = "0" ]; then + echo "PNG $1.png written" +fi -- cgit 1.2.3-korg