gnuplot documentation
gnuplot documentation
gnuplot documentation
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
77 TERMINAL <strong>gnuplot</strong> 4.3 171<br />
which uses white for the non-transparent background, black for borders, gray for the axes, and red,<br />
orange, medium aquamarine, thistle 3, light blue, blue, plum and dark violet for eight plotting colors.<br />
set terminal gif font ’arial’ 14 size 800,600<br />
which searches for a TrueType font with face name ’arial’ in the directory specified by the environment<br />
variable GDFONTPATH and 14pt font size.<br />
77.25 Gnugraph(GNU plotutils)<br />
The gnugraph driver produces device-independent output in the GNU plot graphics language. The<br />
default size of the PostScript results generated by "plot2ps" is 5 x 3 inches; this can be increased up to<br />
about 8.25 x 8.25 by set size.<br />
Syntax:<br />
set terminal gnugraph {""} {}<br />
{type } {size ""}<br />
which defaults to 10-point "Courier".<br />
For type, the following options are accepted: X, pnm, gif, ai, ps, cgm, fig, pcl5, hpgl, tek, and<br />
meta (default). The size option (default is a4) is passed straight through to plotutils, it’s the user’s<br />
responsibility to provide correct values. Details can be found in the plotutils <strong>documentation</strong>.<br />
Examples:<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 />
77.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 <strong>gnuplot</strong> are<br />
given as x+<strong>gnuplot</strong>x and y+<strong>gnuplot</strong>y. 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):