Skip to content

Instantly share code, notes, and snippets.

@teamon
Created November 2, 2010 20:36
Show Gist options
  • Save teamon/660253 to your computer and use it in GitHub Desktop.
Save teamon/660253 to your computer and use it in GitHub Desktop.
f(x) = a*x + b
set terminal png size 1024,768
set xlabel "I [mA]"
set ylabel "U [V]"
set title "U=f(I)"
fit f(x) "rc.dat" via a,b
set output "rc.png"
plot f(x) notitle, "rc.dat" notitle with xyerrorbars ls 3
fit f(x) "rl.dat" via a,b
set output "rl.png"
plot f(x) notitle, "rl.dat" notitle with xyerrorbars ls 3
fit f(x) "rlc.dat" via a,b
set output "rlc.png"
plot f(x) notitle, "rlc.dat" notitle with xyerrorbars ls 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment