diff options
author | Jakob Odersky <jodersky@gmail.com> | 2015-05-01 20:32:43 +0200 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2015-05-01 20:32:43 +0200 |
commit | 0f3de3175cce25c7730c362b26fbbb2729404e5b (patch) | |
tree | 80f67db6af21bccbba2fb7638902823d0aa44905 /prototype/calibration/power/plot | |
parent | 06c0c3630b5ffd4a11017263e2b99764a2e1688d (diff) | |
download | condor-1-0f3de3175cce25c7730c362b26fbbb2729404e5b.tar.gz condor-1-0f3de3175cce25c7730c362b26fbbb2729404e5b.tar.bz2 condor-1-0f3de3175cce25c7730c362b26fbbb2729404e5b.zip |
add prototype
Diffstat (limited to 'prototype/calibration/power/plot')
-rwxr-xr-x | prototype/calibration/power/plot | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/prototype/calibration/power/plot b/prototype/calibration/power/plot new file mode 100755 index 0000000..c4703d0 --- /dev/null +++ b/prototype/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) |