Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env gnuplot
- stats "data.dat" using 1 nooutput
- N = STATS_records
- array A[N]
- array B[N]
- stats "data.dat" using (A[$0+1] = $1, B[$0+1] = $2, 0) nooutput
- plot for [i=1:N] A[i] * x + B[i] title sprintf("%d * x + %d", A[i], B[i]) with lines
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement