home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / graphics / gnuplot / 669 next >
Encoding:
Internet Message Format  |  1993-01-21  |  2.6 KB

  1. Xref: sparky comp.graphics.gnuplot:669 comp.text:1602
  2. Newsgroups: comp.graphics.gnuplot,comp.text
  3. Path: sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sunic!news.lth.se!pollux.lu.se!lotka.teorekol.lu.se!siglun
  4. From: siglun@lotka.teorekol.lu.se (Sigfrid Lundberg)
  5. Subject: New driver for gnuplot: pic/troff
  6. Message-ID: <1993Jan21.063855.1228@pollux.lu.se>
  7. Originator: siglun@lotka.teorekol.lu.se
  8. Sender: news@pollux.lu.se (Owner of news files)
  9. Nntp-Posting-Host: lotka.teorekol.lu.se
  10. Organization: University of Lund, Sweden
  11. Date: Thu, 21 Jan 1993 06:38:55 GMT
  12. Lines: 62
  13.  
  14.  
  15. I have written a gnuplot driver for the pic graphics language. I have
  16. tested it under gnuplot3.2 and is currently using it with the
  17. reengineered troff, groff, which is distributed by Free Software
  18. Foundation, but it should work for AT&T's DWB as well. As gpic can
  19. produce TeX output, it could possibly be an alternative to the LaTeX
  20. driver.
  21.  
  22. The output from pic can be pipe-lined into eqn, so it is possible to put
  23. complex functions in a graph with the set label and set {x/y}label commands.
  24. For instance,
  25.  
  26. set ylab '@space 0 int from 0 to x alpha ( t ) roman d t@'
  27.  
  28. Will lable the y-axis with a nice integral if formatted
  29.  
  30. gpic filename.pic | geqn -d@@ -Tps | groff -m[macro-package] -Tps > filename.ps
  31.  
  32. Figures made this way can be scaled to fit into a document. The pic
  33. language is easy to understand, so the graphs can be edited by hand if
  34. need be. All coordinates in the pic-file produced by gnuplot are given
  35. as x+gnuplotx and y+gnuploty. In the header x and y are given the values
  36. zero. If this line is removed with an editor in a number of files one can
  37. put several graphs i one figure like this (default size is 5.0x3.0 inches)
  38.  
  39. .PS 8.0
  40. x=0;y=3
  41. copy "figa.pic"
  42. x=5;y=3
  43. copy "figb.pic"
  44. x=0;y=0
  45. copy "figc.pic"
  46. x=5;y=0
  47. copy "figd.pic"
  48. .PE
  49.  
  50. This will produce an 8 inches wide figure with four graphs in two rows
  51. on top of each other
  52.  
  53. When I get time to revise the driver I will use possibility to set the
  54. value of x and y using a command like
  55.  
  56. set term pic 5.0,3.0
  57.  
  58. Scaling can already be done using set size.
  59.  
  60.  
  61. I prefer to using encapsulated postscript this way of including graphs
  62. in troff documents, because of the possiblity to preprocess with eqn,
  63. and because pic is much easier to understan - at least for me.
  64.  
  65. I would like to share this piece of software with anyone, in the hope that it
  66. will be useful for at least someone. But taking into account that it is
  67. the very first version of the driver, I would be happy if I could get into
  68. contact with people able to help me improve it.
  69.  
  70. Please send me a mail if you wish to test my pic driver for gnuplot.
  71.  
  72. Best wishes
  73.  
  74.  
  75. Sigfrid
  76.