01.02.2014 Views

GNUPlot Manual

GNUPlot Manual

GNUPlot Manual

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.

36 SET-SHOW gnuplot 4.0 117<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 />

36.59.39 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 />

36.59.40 Latex<br />

The latex and emtex drivers allow two options.<br />

Syntax:<br />

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

fontsize may be any size you specify. The default is for the plot to inherit its font setting from the<br />

embedding document.<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<br />

part of the base distribution and thus part of any LaTeX implementation. Please do not forget to use<br />

this package.<br />

Examples: About label positioning: Use gnuplot defaults (mostly sensible, but sometimes not really<br />

best):<br />

set title ’\LaTeX\ -- $ \gamma $’<br />

Force centering both horizontally and vertically:<br />

set label ’{\LaTeX\ -- $ \gamma $}’ at 0,0

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

Saved successfully!

Ooh no, something went wrong!