tizen 2.4 release
[external/xdelta3.git] / plot.sh
1 #!/bin/sh
2
3 G=/usr/bin/gnuplot
4
5 D=./output_dir
6
7 I=$1
8 O=$D/$2
9
10 $G > $O <<EOF
11
12 #set terminal jpeg
13 set terminal png
14
15 f(x) = 1331000 + 30000 * (1 / (x - 2.45))
16
17 # plot [x=1:10] [1:10] f(x)
18 # plot sin(x), cos(x)
19 # , f(x)
20
21 plot "$I" using 1:2
22
23 EOF
24
25 mv "$I" "$D"