summaryrefslogtreecommitdiff
path: root/xdelta3/plot.sh
blob: 8370ae71581024b1f9bc511f0f76574635ba46eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

G=/usr/bin/gnuplot

D=./output_dir

I=$1
O=$D/$2

$G > $O <<EOF

#set terminal jpeg
set terminal png

f(x) = 1331000 + 30000 * (1 / (x - 2.45))

# plot [x=1:10] [1:10] f(x)
# plot sin(x), cos(x)
# , f(x)

plot "$I" using 1:2

EOF

mv "$I" "$D"