From 7ba0302fd19e81d85b21a8f544246ffaab03fa19 Mon Sep 17 00:00:00 2001 From: Martin Evgeniev Date: Fri, 7 Dec 2018 13:07:31 +0100 Subject: [PATCH] tests/make_graph: improve readability --- tests/make_graph | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/make_graph b/tests/make_graph index e9d08ed7b..c9e8e340c 100755 --- a/tests/make_graph +++ b/tests/make_graph @@ -33,7 +33,15 @@ all() { do func_name=$(cat /tmp/data | grep -o -F $(cat /tmp/function) | uniq) echo $func_name - cat /tmp/data | grep -F $(cat /tmp/function) | gnuplot -e "set terminal dumb size $columns $lines enhanced ansi256; set title \"$func_name\" ; plot \"-\" using 1:$parse with lines; pause -1" + cat /tmp/data | grep -F $(cat /tmp/function) | \ + gnuplot -e " + set terminal dumb size $columns $lines enhanced ansi256; + set title '$func_name'; + set xlabel '# of events'; + set ylabel '$unit'; + plot '-' using 1:$parse with lines; + pause -1 + " read -p "Press Enter to continue" done } @@ -41,6 +49,7 @@ all() { case $metric in cumulative|cum|c) parse='6' + unit='%' all ;; flat|f)