home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / splot122.zip / DOC / INTRO.TEX < prev    next >
Text File  |  1994-09-22  |  3KB  |  45 lines

  1. \chapter{Introduction} 
  2.         Scientific plotting programs fall into two main categories. The
  3. first is the non interactive type represented by most mainframe plotting
  4. programs which require that the plot be specified as a file of plotting
  5. instructions. This file is edited using a text editor and then the plot is
  6. generated by executing this file. The second major type of plotting
  7. programs are those popularized on PCs which allow a user to specify the
  8. drawing using a mouse and are inherently interactive. This type of program
  9. is easier to use and it is possible to rapidly make changes. It
  10. is however not ideal since the drawing is usually
  11. stored in a proprietary, non-text format which is difficult to interpret.
  12. This makes the task of reusing parts of a previous drawing in a new drawing
  13. or simply plotting new data in an old figure difficult or impossible. 
  14. Furthermore, these programs invariably do not have the
  15. flexibility to handle the needs of preparing scientific plots. Splot has
  16. been developed with the goal of bridging these two disparate approaches in
  17. an attempt to gain the benefits of both.
  18.  
  19.         Splot is geared towards generating two dimensional, publication 
  20. quality scientific plots as painlessly as possible without sacrificing 
  21. flexibility and power. Splot contains much of the functionality of 
  22. Postscript$^{{\rm TM}}$\index{postscript} and can thus be used as a general 
  23. purpose drawing tool. Furthermore, it has functions specifically aimed at 
  24. producing plots of x,y data pairs. Splot generates a drawing by 
  25. interpreting\index{interpreter} a C\index{C} program which specifies the 
  26. drawing. Unlike traditional mainframe plotting programs this happens 
  27. quickly since the interpreter and editor are integrated into splot. 
  28. Specifying the plot in a powerful programming language has several 
  29. advantages. Since C is currently the most popular programming language in 
  30. existence many people will already be familiar with its use. This makes C a 
  31. much better choice than developing a specialized language to be 
  32. interpreted. Having the drawing specified by a programming language also 
  33. gives algorithmic capabilities thus allowing repetitive components of a 
  34. drawing to be generated using a standard loop construct. Data to be plotted 
  35. can also be manipulated before drawing using the built in standard C 
  36. math\index{math} library. C also allows parts of a drawing that are to be 
  37. used more than once to be specified as a subroutine\index{subroutine}. This 
  38. sub component can then be drawn anywhere in the final drawing by first 
  39. specifying a translation, scale and rotation and then calling the 
  40. subroutine. Lastly, the description of the drawing is in plain ASCII text 
  41. allowing it to be easily understood and transferred electronically. Splot 
  42. contains a built in drawing and plotting function library whose members are 
  43. called by the C interpreter to generate the drawing. 
  44.  
  45.