diff options
Diffstat (limited to 'xdelta3/plot.sh')
-rw-r--r-- | xdelta3/plot.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/xdelta3/plot.sh b/xdelta3/plot.sh index d5f8dab..8370ae7 100644 --- a/xdelta3/plot.sh +++ b/xdelta3/plot.sh | |||
@@ -2,11 +2,15 @@ | |||
2 | 2 | ||
3 | G=/usr/bin/gnuplot | 3 | G=/usr/bin/gnuplot |
4 | 4 | ||
5 | D=./output_dir | ||
6 | |||
5 | I=$1 | 7 | I=$1 |
6 | O=$2 | 8 | O=$D/$2 |
7 | 9 | ||
8 | $G > $O <<EOF | 10 | $G > $O <<EOF |
9 | set terminal jpeg | 11 | |
12 | #set terminal jpeg | ||
13 | set terminal png | ||
10 | 14 | ||
11 | f(x) = 1331000 + 30000 * (1 / (x - 2.45)) | 15 | f(x) = 1331000 + 30000 * (1 / (x - 2.45)) |
12 | 16 | ||
@@ -14,6 +18,8 @@ f(x) = 1331000 + 30000 * (1 / (x - 2.45)) | |||
14 | # plot sin(x), cos(x) | 18 | # plot sin(x), cos(x) |
15 | # , f(x) | 19 | # , f(x) |
16 | 20 | ||
17 | plot "$I" using 1:2, f(x) | 21 | plot "$I" using 1:2 |
18 | 22 | ||
19 | EOF | 23 | EOF |
24 | |||
25 | mv "$I" "$D" | ||