Fix whitespace issues in previous commit
[fio.git] / tools / plot / graph2D.gpm
CommitLineData
67b7db1e
EV
1# This Gnuplot file has been generated by eNovance
2
11822c0b
SW
3needed_args = 8
4if (exists("ARGC") && ARGC >= needed_args) \
5 found_args = 1; \
6else if (strlen("$$#") < 3 && "$#" >= needed_args) \
7 found_args = 1; \
8 ARG1 = "$0"; \
9 ARG2 = "$1"; \
10 ARG3 = "$2"; \
11 ARG4 = "$3"; \
12 ARG5 = "$4"; \
13 ARG6 = "$5"; \
14 ARG7 = "$6"; \
15 ARG8 = "$7"; \
16else \
17 found_args = 0; \
18 print "Aborting: could not find all arguments"; \
19 exit
20
21avg_num = ARG8 + 0
22avg_str = sprintf("%g", avg_num)
23
24set title ARG1
67b7db1e
EV
25
26set terminal png size 1280,1024
11822c0b 27set output ARG4 . '.png'
67b7db1e
EV
28#set terminal x11
29
30#Preparing Axes
31#set logscale x
be34415a 32set ytics axis out auto
67b7db1e
EV
33#set data style lines
34set key top left reverse
35set xlabel "Time (Seconds)"
11822c0b 36set ylabel ARG5
67b7db1e
EV
37set xrange [0:]
38set yrange [0:]
39
40#Set Color style
41#set palette rgbformulae 22,9,23
42#set palette rgbformulae 7,5,15
43set style line 100 lt 7 lw 0.5
44set style line 1 lt 1 lw 3 pt 3 linecolor rgb "green"
45
11822c0b 46plot ARG2 using 2:3 with linespoints title ARG3, avg_num w l ls 1 ti 'Global average value (' . avg_str . ')'
67b7db1e 47
11822c0b
SW
48set output ARG6 . '.png'
49plot ARG2 using 2:3 smooth csplines title ARG3, avg_num w l ls 1 ti 'Global average value (' . avg_str . ')'
67b7db1e 50
11822c0b
SW
51set output ARG7 . '.png'
52plot ARG2 using 2:3 smooth bezier title ARG3, avg_num w l ls 1 ti 'Global average value (' . avg_str .')'
67b7db1e
EV
53
54#pause -1
55#The End