aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/suricata/qa/gnuplot/plot-csv-large-all.sh
blob: f3484fd7231538ac8f84af258d8d010561733b7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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