aboutsummaryrefslogtreecommitdiff
path: root/calibration/power/plot
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2015-02-28 21:08:13 +0100
committerJakob Odersky <jodersky@gmail.com>2015-02-28 21:32:39 +0100
commita7b93aad52f85b472c91d623c233b342a2e0cfb0 (patch)
treed1984aa09a8cec400903efdb9e093fcf52a2beab /calibration/power/plot
downloadcondor-1-a7b93aad52f85b472c91d623c233b342a2e0cfb0.tar.gz
condor-1-a7b93aad52f85b472c91d623c233b342a2e0cfb0.tar.bz2
condor-1-a7b93aad52f85b472c91d623c233b342a2e0cfb0.zip
initial commit
Diffstat (limited to 'calibration/power/plot')
-rwxr-xr-xcalibration/power/plot14
1 files changed, 14 insertions, 0 deletions
diff --git a/calibration/power/plot b/calibration/power/plot
new file mode 100755
index 0000000..c4703d0
--- /dev/null
+++ b/calibration/power/plot
@@ -0,0 +1,14 @@
+#!/usr/bin/env gnuplot
+
+set terminal pdf enhanced font 'Helvetica,14' size 16cm,12cm
+
+f(x) = a*x+b;
+fit f(x) "data.dat" using 2:1 via a,b
+
+set grid
+set title "Voltage to measured ADC"
+set xlabel "ADC value"
+set ylabel "Voltage [mV]"
+
+plot "data.dat" using 2:1 with points title "data points", \
+ f(x) with lines title sprintf('linear fit curve mV(x) = %.5f·x%+.5f', a, b)