5 I have tested driver under gnuplot3.2, and I am currently using it
6 with the reengineered troff, groff, which is distributed by Free
7 Software Foundation, but it should work for AT&T's DWB as well. As
8 gpic can produce TeX output, it could possibly be an alternative to
9 the LaTeX driver for TeX-users having the tpic macros (see the gpic
10 man page - I don't know much about TeX so please don't ask me about
13 A simple graph can be formatted using
15 groff -p -mpic -Tps file.pic > file.ps.
17 The output from pic can be pipe-lined into eqn, so it is possible to put
18 complex functions in a graph with the set label and set {x/y}label commands.
21 set ylab '@space 0 int from 0 to x alpha ( t ) roman d t@'
23 Will lable the y-axis with a nice integral if formatted with the
26 gpic filename.pic | geqn -d@@ -Tps | groff -m[macro-package] -Tps > filename.ps
28 Figures made this way can be scaled to fit into a document. The pic
29 language is easy to understand, so the graphs can be edited by hand if
30 need be. All coordinates in the pic-file produced by gnuplot are given
31 as x+gnuplotx and y+gnuploty. By default x and y are given the value 0
32 If this line is removed with an editor in a number of files one can
33 put several graphs i one figure like this (default size is 5.0x3.0 inches)
46 This will produce an 8 inches wide figure with four graphs in two rows
49 One can also achieve the same thing by the command
59 the following session generated a two by two figure with
65 patchlevel 2, Mar 24 92
66 last modified Sat Mar 24 21:08:47 PST 1992
68 Copyright(C) 1986, 1987, 1990, 1991, 1992 Thomas Williams, Colin Kelley
70 Send bugs and comments to bug-gnuplot@ames.arc.nasa.gov
72 Terminal type set to 'x11'
73 gnuplot> set out 'trig.pic'
74 gnuplot> set ter pic 0 5
75 Terminal type set to 'pic'
76 Options are 'Pic's origin is at (0.000000,5.000000)'
78 gnuplot> set ter pic 5 5
79 Terminal type set to 'pic'
80 Options are 'Pic's origin is at (5.000000,5.000000)'
82 gnuplot> set ter pic 0 0
84 Terminal type set to 'pic'
85 Options are 'Pic's origin is at (0.000000,0.000000)'
87 gnuplot> set ter pic 5 0
88 Terminal type set to 'pic'
89 Options are 'Pic's origin is at (5.000000,0.000000)'
90 gnuplot> plot cos(x)/sin(x)
96 Scaling can be done using set size.
99 I prefer this way of including graphs to using encapsulated in troff
100 documents, because of the possiblity to preprocess with eqn, and
101 because pic is much easier to understand than postscript - at least for me.
104 WHAT HAS TO BE DONE TO IMPROVE THIS DRIVER
108 2.) Dot-dashed line styles
110 3.) Possibly make line thickness an option when set term pic
112 4.) Making it possible to select fonts for both pic and eqn from
113 gnuplot's command line.
116 I am happy to share this piece of software with anyone, in the hope
117 that it will be useful for at least someone. But taking into account
118 that it is the very first version of the driver, I would be happy if I
119 could get into contact with people able to help me improve it.
121 Mind you: Anything thats free comes with no guarantee!
125 Sigfrid Lundberg (siglun@volterra.teorekol.lu.se)