From 8ff749cca16845a3172e22323489d20d8f99f9dd Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Fri, 2 Aug 2013 14:29:00 +0200 Subject: [PATCH] fio2gnuplot: Display average value in label When plotting 2D or mathematical graphs, let's show the numerical value of the average value to ease the reading. --- tools/plot/graph2D.gpm | 6 +++--- tools/plot/math.gpm | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/plot/graph2D.gpm b/tools/plot/graph2D.gpm index efc7ac27..5cd6ff35 100644 --- a/tools/plot/graph2D.gpm +++ b/tools/plot/graph2D.gpm @@ -22,13 +22,13 @@ set yrange [0:] set style line 100 lt 7 lw 0.5 set style line 1 lt 1 lw 3 pt 3 linecolor rgb "green" -plot '$1' using 2:3 with linespoints title '$2', $7 w l ls 1 ti 'Global average value' +plot '$1' using 2:3 with linespoints title '$2', $7 w l ls 1 ti 'Global average value ($7)' set output '$5.png' -plot '$1' using 2:3 smooth csplines title '$2', $7 w l ls 1 ti 'Global average value' +plot '$1' using 2:3 smooth csplines title '$2', $7 w l ls 1 ti 'Global average value ($7)' set output '$6.png' -plot '$1' using 2:3 smooth bezier title '$2', $7 w l ls 1 ti 'Global average value' +plot '$1' using 2:3 smooth bezier title '$2', $7 w l ls 1 ti 'Global average value ($7)' #pause -1 #The End diff --git a/tools/plot/math.gpm b/tools/plot/math.gpm index 81e03da3..a01f5a0d 100644 --- a/tools/plot/math.gpm +++ b/tools/plot/math.gpm @@ -22,4 +22,4 @@ set xtics axis out set xtic rotate by 45 scale 0 font ",8" autojustify set xtics offset 0,-1 border -5,1,5 set style line 1 lt 1 lw 3 pt 3 linecolor rgb "green" -plot '$1' using 2:xtic(1) ti col, $5 w l ls 1 ti 'Global average value' +plot '$1' using 2:xtic(1) ti col, $5 w l ls 1 ti 'Global average value ($5)' -- 2.25.1