14.10.2014 Views

gnuplot documentation

gnuplot documentation

gnuplot documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

77 TERMINAL <strong>gnuplot</strong> 4.3 175<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 jpeg 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 jpeg 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 jpeg large font arial 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 large (14pt) font size.<br />

77.38 Kyo<br />

The kyo and prescribe terminal drivers support the Kyocera laser printer. The only difference between<br />

the two is that kyo uses "Helvetica" whereas prescribe uses "Courier". There are no options.<br />

77.39 Latex<br />

Syntax:<br />

set terminal {latex | emtex} {default | {courier|roman} {}}<br />

{size {unit}, {unit}}<br />

By default the plot will inherit font settings from the embedding document. You have the option of<br />

forcing either Courier (cmtt) or Roman (cmr) fonts instead. In this case you may also specify a fontsize.<br />

Unless your driver is capable of building fonts at any size (e.g. dvips), stick to the standard 10, 11 and<br />

12 point sizes.<br />

METAFONT users beware: METAFONT does not like odd sizes.<br />

All drivers for LaTeX offer a special way of controlling text positioning: If any text string begins with ’{’,<br />

you also need to include a ’}’ at the end of the text, and the whole text will be centered both horizontally<br />

and vertically. If the text string begins with ’[’, you need to follow this with a position specification (up<br />

to two out of t,b,l,r), ’]{’, the text itself, and finally ’}’. The text itself may be anything LaTeX can<br />

typeset as an LR-box. ’\rule{}{}’s may help for best positioning.<br />

Points, among other things, are drawn using the LaTeX commands "\Diamond" and "\Box". These<br />

commands no longer belong to the LaTeX2e core; they are included in the latexsym package, which is

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!