fio2gnuplot: Display average value in label
authorErwan Velu <erwan@enovance.com>
Fri, 2 Aug 2013 12:29:00 +0000 (14:29 +0200)
committerErwan Velu <erwan@enovance.com>
Mon, 5 Aug 2013 15:09:59 +0000 (17:09 +0200)
When plotting 2D or mathematical graphs, let's show the numerical value
of the average value to ease the reading.

tools/plot/graph2D.gpm
tools/plot/math.gpm

index efc7ac27a82e2d95ee3a4a145b2069a1dd011b4c..5cd6ff35014a5cf78a5ca2404487d99c33ae45f8 100644 (file)
@@ -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"
 
 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'
 
 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'
 
 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
 
 #pause -1
 #The End
index 81e03da38497ee6b18f1bbc2030640c0339f1dac..a01f5a0de6a610c0188de1c2d94cbc65a4c17da7 100644 (file)
@@ -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"
 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)'