gnuplot documentation
gnuplot documentation
gnuplot documentation
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
184 <strong>gnuplot</strong> 4.3 77 TERMINAL<br />
If <strong>gnuplot</strong> was built with support for TrueType (*.ttf) or Adobe Type 1 (*.pfa) fonts, they may be<br />
selected using the ’font {}’ option. is either the full pathname to the font<br />
file, or a font face name that is assumed to be the first part of a filename in one of the directories listed<br />
in the GDFONTPATH environmental variable. That is, ’set term png font "Face"’ will look for a font<br />
file named either /Face.ttf or /Face.pfa. Both TrueType and Adobe<br />
Type 1 fonts are fully scalable and may be rotated through any angle. If no font is specified, <strong>gnuplot</strong><br />
checks the environmental variable GNUPLOT DEFAULT GDFONT to see if there is a preferred default<br />
font.<br />
enhanced enables the enhanced text processing features, (subscripts, superscripts and mixed fonts).<br />
See enhanced (p. 186) for more information. The full enhanced mode syntax is supported by the<br />
PNG/JPEG driver itself, but some of these features are dependent on which version of the underlying<br />
libgd library is present, and which fonts are available.<br />
The size is given in pixels — it defaults to 640x480. The number of pixels can be also modified<br />
by scaling with the set size command. crop trims blank space from the edges of the completed plot,<br />
resulting in a smaller final image size. Default is nocrop.<br />
Each color must be of the form ’xrrggbb’, where x is the literal character ’x’ and ’rrggbb’ are the red,<br />
green and blue components in hex. For example, ’x00ff00’ is green. The background color is set first,<br />
then the border colors, then the X & Y axis colors, then the plotting colors. The maximum number of<br />
colors that can be set is 256.<br />
Examples:<br />
set terminal png medium size 640,480 \<br />
xffffff x000000 x404040 \<br />
xff0000 xffa500 x66cdaa xcdb5cd \<br />
xadd8e6 x0000ff xdda0dd x9500d3<br />
# defaults<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 png 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 />
set terminal png transparent xffffff \<br />
x000000 x202020 x404040 x606060 \<br />
x808080 xA0A0A0 xC0C0C0 xE0E0E0<br />
which uses white for the transparent background, black for borders, dark gray for axes, and a gray-scale<br />
for the six plotting colors.<br />
77.53 Postscript<br />
Several options may be set in the postscript driver.<br />
Syntax:<br />
set terminal postscript {default}<br />
set terminal postscript {landscape | portrait | eps}<br />
{enhanced | noenhanced}<br />
{defaultplex | simplex | duplex}<br />
{fontfile [add | delete] ""<br />
| nofontfiles}<br />
{level1 | leveldefault}<br />
{color | colour | monochrome}<br />
{solid | dashed}<br />
{dashlength | dl }<br />
{linewidth | lw }<br />
{rounded | butt}