From d45e01e1294fe726708f71c2ec20916c683ff722 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 7 Sep 2011 13:39:58 +0200 Subject: [PATCH] Add a few more example gnuplot scripts. --- ...-csv-small-pcap-file-stream-vs-http.sh.swp | Bin 0 -> 12288 bytes qa/gnuplot/plot-csv-large-all.sh | 23 ++++++++++++++++ ...plot-csv-large-pcap-file-stream-vs-http.sh | 26 ++++++++++++++++++ ...plot-csv-small-pcap-file-stream-vs-http.sh | 26 ++++++++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 qa/gnuplot/.plot-csv-small-pcap-file-stream-vs-http.sh.swp create mode 100755 qa/gnuplot/plot-csv-large-all.sh create mode 100755 qa/gnuplot/plot-csv-large-pcap-file-stream-vs-http.sh create mode 100755 qa/gnuplot/plot-csv-small-pcap-file-stream-vs-http.sh diff --git a/qa/gnuplot/.plot-csv-small-pcap-file-stream-vs-http.sh.swp b/qa/gnuplot/.plot-csv-small-pcap-file-stream-vs-http.sh.swp new file mode 100644 index 0000000000000000000000000000000000000000..ea6d9e85806a8be2c23efc2f5ae9363c70ca92e6 GIT binary patch literal 12288 zcmeI2PjAyO6u{kG(Ez~-E_?GTacP>g3vAj}A^wbk1OpAm4r4-Y>NM8UB*aetaNxil zA-(`eNL;z_SvYX#10diI&q*mlLgR|yx%#EGW4~Abd}{N$-u)Z5V5Qk+*iJI`Y_Gq) zb>&#?%sIw}DllnoZyepmBj5MDqvzPWPpW{fo+N?WlS3K1QuQ+JJ`!#}DY7^gdn;Xa*S|15*Qq37yq>w%l%cOMDSdpV}og zWPl8i0Wv@a$N(8217v^<{AUJCR%73A&vVFGq&5ZLsF49OKnBPF86X2>fDDiUGC&5% z02v?y|A+z6W9-d5V~fXeL-_pP{s-{&1Y@6(Psj)4E%F+9g}g*wAWxA#avkxJ1!NBS zf^j|~?~!-Nb7X)h87p1@%@lOZqU%l`%5mOogxyyuPz}clYK!4jteghl6!6kxW=M+Nob;o42o(fow3~ z915*4%9`JXkunivsY;Cg-Hh{oHKTrY=h9vS9xz)XjtN_{7|YWbvl&_%h||6fL@Z&# zY$#PGG~c2(kb1s2hN E2OJy8qW}N^ literal 0 HcmV?d00001 diff --git a/qa/gnuplot/plot-csv-large-all.sh b/qa/gnuplot/plot-csv-large-all.sh new file mode 100755 index 0000000000..ca0fd064f6 --- /dev/null +++ b/qa/gnuplot/plot-csv-large-all.sh @@ -0,0 +1,23 @@ +#!/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 +plot "$1" using 4, for [i in $2] '' using i with $3 +EOF +RESULT=$? +if [ "$RESULT" = "0" ]; then + echo "PNG $1.png written" +fi diff --git a/qa/gnuplot/plot-csv-large-pcap-file-stream-vs-http.sh b/qa/gnuplot/plot-csv-large-pcap-file-stream-vs-http.sh new file mode 100755 index 0000000000..9942307a1e --- /dev/null +++ b/qa/gnuplot/plot-csv-large-pcap-file-stream-vs-http.sh @@ -0,0 +1,26 @@ +#!/bin/bash +# +# +if [ "$1" = "" ]; then + echo "call with location of csv file." + exit 1; +fi + +DRAW="dots" +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 +plot "$1" using :32 with $DRAW, \ + "" using :54 with $DRAW, \ + "" using :42 with $DRAW +EOF +RESULT=$? +if [ "$RESULT" = "0" ]; then + echo "PNG $1.png written" +fi diff --git a/qa/gnuplot/plot-csv-small-pcap-file-stream-vs-http.sh b/qa/gnuplot/plot-csv-small-pcap-file-stream-vs-http.sh new file mode 100755 index 0000000000..81a53136ea --- /dev/null +++ b/qa/gnuplot/plot-csv-small-pcap-file-stream-vs-http.sh @@ -0,0 +1,26 @@ +#!/bin/bash +# +# +if [ "$1" = "" ]; then + echo "call with location of csv file." + exit 1; +fi + +DRAW="boxes" +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 +plot "$1" using :32 with $DRAW, \ + "" using :54 with $DRAW, \ + "" using :42 with points +EOF +RESULT=$? +if [ "$RESULT" = "0" ]; then + echo "PNG $1.png written" +fi