home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.graphics.gnuplot:669 comp.text:1602
- Newsgroups: comp.graphics.gnuplot,comp.text
- Path: sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sunic!news.lth.se!pollux.lu.se!lotka.teorekol.lu.se!siglun
- From: siglun@lotka.teorekol.lu.se (Sigfrid Lundberg)
- Subject: New driver for gnuplot: pic/troff
- Message-ID: <1993Jan21.063855.1228@pollux.lu.se>
- Originator: siglun@lotka.teorekol.lu.se
- Sender: news@pollux.lu.se (Owner of news files)
- Nntp-Posting-Host: lotka.teorekol.lu.se
- Organization: University of Lund, Sweden
- Date: Thu, 21 Jan 1993 06:38:55 GMT
- Lines: 62
-
-
- I have written a gnuplot driver for the pic graphics language. I have
- tested it under gnuplot3.2 and is currently using it with the
- reengineered troff, groff, which is distributed by Free Software
- Foundation, but it should work for AT&T's DWB as well. As gpic can
- produce TeX output, it could possibly be an alternative to the LaTeX
- driver.
-
- The output from pic can be pipe-lined into eqn, so it is possible to put
- complex functions in a graph with the set label and set {x/y}label commands.
- For instance,
-
- set ylab '@space 0 int from 0 to x alpha ( t ) roman d t@'
-
- Will lable the y-axis with a nice integral if formatted
-
- gpic filename.pic | geqn -d@@ -Tps | groff -m[macro-package] -Tps > filename.ps
-
- Figures made this way can be scaled to fit into a document. The pic
- language is easy to understand, so the graphs can be edited by hand if
- need be. All coordinates in the pic-file produced by gnuplot are given
- as x+gnuplotx and y+gnuploty. In the header x and y are given the values
- zero. If this line is removed with an editor in a number of files one can
- put several graphs i one figure like this (default size is 5.0x3.0 inches)
-
- .PS 8.0
- x=0;y=3
- copy "figa.pic"
- x=5;y=3
- copy "figb.pic"
- x=0;y=0
- copy "figc.pic"
- x=5;y=0
- copy "figd.pic"
- .PE
-
- This will produce an 8 inches wide figure with four graphs in two rows
- on top of each other
-
- When I get time to revise the driver I will use possibility to set the
- value of x and y using a command like
-
- set term pic 5.0,3.0
-
- Scaling can already be done using set size.
-
-
- I prefer to using encapsulated postscript this way of including graphs
- in troff documents, because of the possiblity to preprocess with eqn,
- and because pic is much easier to understan - at least for me.
-
- I would like to share this piece of software with anyone, in the hope that it
- will be useful for at least someone. But taking into account that it is
- the very first version of the driver, I would be happy if I could get into
- contact with people able to help me improve it.
-
- Please send me a mail if you wish to test my pic driver for gnuplot.
-
- Best wishes
-
-
- Sigfrid
-