home *** CD-ROM | disk | FTP | other *** search
/ TopWare 18: Liquid / Image.iso / liquid / top1184 / gepackt.exe / MULPOL.PLT < prev    next >
Text File  |  1994-02-22  |  733b  |  50 lines

  1. # mulpol.plt - multiple polynomials
  2.  
  3. paper size 11 by 8.5
  4. nobeep
  5.  
  6. char size 0.1
  7. map x 0 50 y -4000000 4000000
  8. divi x 5,5 y 4,5
  9. format x 0 y 0
  10. data from file 'lab4.dat'
  11. draw x y
  12. frame
  13.  
  14. xlabel 'change in position (cm)'
  15. ylabel 'Energy (ergs)'
  16.  
  17. plot x y add
  18.  
  19. pen color yellow
  20. polyfit 1
  21.  
  22. pen color green
  23. column 3 is y
  24. pen style 5
  25. plot x y add
  26.  
  27. pen color yellow
  28. polyfit 1
  29.  
  30. pen color green
  31. column 4 is y
  32. pen style 3
  33. plot x y add
  34.  
  35. pen color yellow
  36. polyfit 1
  37.  
  38. pen color green
  39. pen style 1
  40.  
  41. legend framed at 6.5 3.5
  42. pen style 1 'Kinetic Energy'
  43. pen style 5 'Potential Energy'
  44. pen style 3 'Total Mechanical Energy'
  45. end
  46.  
  47. color lblue
  48. char font 3 size 0.2 slant 10
  49. title 'Multiple Polynomial Fits'
  50.