summaryrefslogtreecommitdiff
path: root/plot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'plot.sh')
-rw-r--r--plot.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/plot.sh b/plot.sh
new file mode 100644
index 0000000..8370ae7
--- /dev/null
+++ b/plot.sh
@@ -0,0 +1,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"