em-experiment.gnuplot 409 B

1234567891011121314151617181920
  1. #!/usr/bin/gnuplot
  2. #
  3. # Gnuplot example script
  4. # Linear fit of a fictious amount of data collected during the charge-to-mass
  5. # ratio of the electron experiment.
  6. set terminal svg
  7. set output 'em.svg'
  8. set title "An example graph"
  9. set xlabel "m/e"
  10. set ylabel "B^2R^2"
  11. f(x) = a + x*d
  12. a = 1
  13. d = 1
  14. fit f(x) 'datalab.dat' u 1:2:4 yerror via a,d
  15. plot 'datalab.dat' u 1:2:4 w yerrorbars pt 9 ps 0.8 , f(x) title ''