GNUPlot Manual
GNUPlot Manual
GNUPlot Manual
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
36 SET-SHOW gnuplot 4.0 113<br />
set terminal gnugraph type hpgl size "a4"<br />
set terminal gnugraph size "a4,xoffset=-5mm,yoffset=2.0cm" type pnm<br />
There is a non-GNU version of the gnugraph driver which cannot be compiled unless this version is<br />
left out.<br />
36.59.26 Gpic<br />
The gpic terminal driver generates GPIC graphs in the Free Software Foundations’s "groff" package.<br />
The default size is 5 x 3 inches. The only option is the origin, which defaults to (0,0).<br />
Syntax:<br />
set terminal gpic { }<br />
where x and y are in inches.<br />
A simple graph can be formatted using<br />
groff -p -mpic -Tps file.pic > file.ps.<br />
The output from pic can be pipe-lined into eqn, so it is possible to put complex functions in a graph<br />
with the set label and set {x/y}label commands. For instance,<br />
set ylab ’@space 0 int from 0 to x alpha ( t ) roman d t@’<br />
will label the y axis with a nice integral if formatted with the command:<br />
gpic filename.pic | geqn -d@@ -Tps | groff -m[macro-package] -Tps<br />
> filename.ps<br />
Figures made this way can be scaled to fit into a document. The pic language is easy to understand, so<br />
the graphs can be edited by hand if need be. All co-ordinates in the pic-file produced by gnuplot are<br />
given as x+gnuplotx and y+gnuploty. By default x and y are given the value 0. If this line is removed<br />
with an editor in a number of files, one can put several graphs in one figure like this (default size is<br />
5.0x3.0 inches):<br />
.PS 8.0<br />
x=0;y=3<br />
copy "figa.pic"<br />
x=5;y=3<br />
copy "figb.pic"<br />
x=0;y=0<br />
copy "figc.pic"<br />
x=5;y=0<br />
copy "figd.pic"<br />
.PE<br />
This will produce an 8-inch-wide figure with four graphs in two rows on top of each other.<br />
One can also achieve the same thing by the command<br />
set terminal gpic x y<br />
for example, using<br />
.PS 6.0<br />
copy "trig.pic"<br />
.PE<br />
36.59.27 Gpr<br />
The gpr terminal driver supports the Apollo Graphics Primitive Resource for a fixed-size window. It<br />
has no options.<br />
If a variable window size is desired, use the apollo terminal instead.