01.02.2014 Views

GNUPlot Manual

GNUPlot Manual

GNUPlot Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

108 gnuplot 4.0 36 SET-SHOW<br />

in the preambel of your latex document. ’dashed’ will allow dashed line types; without this option,<br />

only solid lines with varying thickness will be used. ’dashed’ and ’color’ are mutually exclusive; if<br />

’color’ is specified, then ’dashed’ will be ignored. ’rotate’ will enable true rotated text (by 90 degrees).<br />

Otherwise, rotated text will be typeset with letters stacked above each other. If you use this option<br />

you must include \usepackage{graphicx} in the preamble. ’small’ will use \scriptsize symbols as point<br />

markers (Probably does not work with TeX, only LaTeX2e). Default is to use the default math size.<br />

’tiny’ uses \scriptscriptstyle symbols. ’default’ resets all options to their defaults = no color, no dashed<br />

lines, pseudo-rotated (stacked) text, large point symbols. is a number which specifies the<br />

font size inside the picture environment; the unit is pt (points), i.e., 10 pt equals approx. 3.5 mm. If<br />

fontsize is not specified, then all text inside the picture will be set in \footnotesize.<br />

Notes: Remember to escape the # character (or other chars meaningful to (La-)TeX) by \\ (2 backslashes).<br />

It seems that dashed lines become solid lines when the vertices of a plot are too close. (I do<br />

not know if that is a general problem with the tpic specials, or if it is caused by a bug in eepic.sty or<br />

dvips/dvipdfm.) The default size of an eepic plot is 5x3 inches, which can be scaled by ’set size a,b’.<br />

Points, among other things, are drawn using the LaTeX commands "\Diamond", "\Box", etc. 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. Instead of latexsym, you can also include the amssymb package. All drivers for LaTeX<br />

offer a special way of controlling text positioning: If any text string begins with ’{’, you also need to<br />

include a ’}’ at the end of the text, and the whole text will be centered both horizontally and vertically.<br />

If the text string begins with ’[’, you need to follow this with a position specification (up to two out of<br />

t,b,l,r), ’]{’, the text itself, and finally ’}’. The text itself may be anything LaTeX can typeset as an<br />

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

Examples: set term eepic<br />

output graphs as eepic macros inside a picture environment;<br />

\input the resulting file in your LaTeX document.<br />

set term eepic color tiny rotate 8<br />

eepic macros with \color macros, \scripscriptsize point markers,<br />

true rotated text, and all text set with 8pt.<br />

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

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

Force centering both horizontally and vertically:<br />

set label ’{\LaTeX\ -- $ \gamma $}’ at 0,0<br />

Specify own positioning (top here):<br />

set xlabel ’[t]{\LaTeX\ -- $ \gamma $}’<br />

The other label – account for long ticlabels:<br />

set ylabel ’[r]{\LaTeX\ -- $ \gamma $\rule{7mm}{0pt}}’<br />

36.59.17 Emf<br />

The emf terminal generates an Enhanced Metafile Format file. This file format is the metafile standard<br />

on MS Win32 Systems Syntax:<br />

set terminal emf {} {solid | dashed}<br />

{""} {}<br />

is either color or monochrome; solid draws all curves with solid lines, overriding any dashed<br />

patterns; is the name of a font; and is the size of the font in points.<br />

The first two options can be in any order. Selecting default sets all options to their default values.<br />

Examples:<br />

set terminal emf ’Times Roman Italic’ 12<br />

set terminal emf color solid # no pesky dashes!

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

Saved successfully!

Ooh no, something went wrong!