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.

122 gnuplot 4.0 36 SET-SHOW<br />

36.59.46.1 Metapost Instructions - Set your terminal to Metapost, e.g.:<br />

set terminal mp mono "cmtt12" 12<br />

- Select an output-file, e.g.:<br />

set output "figure.mp"<br />

- Create your pictures. Each plot (or multiplot group) will generate a separate Metapost beginfig...endfig<br />

group. Its default size will be 5 by 3 inches. You can change the size by saying set size 0.5,0.5 or<br />

whatever fraction of the default size you want to have.<br />

- Quit gnuplot.<br />

- Generate EPS files by running Metapost on the output of gnuplot:<br />

mpost figure.mp OR mp figure.mp<br />

The name of the Metapost program depends on the system, typically mpost for a Unix machine and<br />

mp on many others. Metapost will generate one EPS file for each picture.<br />

- To include your pictures in your document you can use the graphics package in LaTeX or epsf.tex in<br />

plainTeX:<br />

\usepackage{graphics} % LaTeX<br />

\input epsf.tex % plainTeX<br />

If you use a driver other than dvips for converting TeX DVI output to PS, you may need to add the<br />

following line in your LaTeX document:<br />

\DeclareGraphicsRule{*}{eps}{*}{}<br />

Each picture you made is in a separate file. The first picture is in, e.g., figure.0, the second in figure.1,<br />

and so on.... To place the third picture in your document, for example, all you have to do is:<br />

\includegraphics{figure.2} % LaTeX<br />

\epsfbox{figure.2} % plainTeX<br />

The advantage, if any, of the mp terminal over a postscript terminal is editable output. Considerable<br />

effort went into making this output as clean as possible. For those knowledgeable in the Metapost<br />

language, the default line types and colors can be changed by editing the arrays lt[] and col[]. The<br />

choice of solid vs dashed lines, and color vs black lines can be change by changing the values assigned<br />

to the booleans dashedlines and colorlines. If the default tex option was in effect, global changes<br />

to the text of labels can be achieved by editing the vebatimtex...etex block. In particular, a LaTeX<br />

preamble can be added if desired, and then LaTeX’s built-in size changing commands can be used for<br />

maximum flexibility. Be sure to set the appropriate MP configuration variable to force Metapost to run<br />

LaTeX instead of plainTeX.<br />

36.59.47 Mtos<br />

The mtos terminal has no options. It sends data via a pipe to an external program called GPCLIENT.<br />

It runs under MULTITOS, Magic 3.x, MagicMAC. and MiNT. If you cannot find GPCLIENT, than<br />

mail to dirk@lstm.uni-erlangen.de.<br />

36.59.48 Next<br />

Several options may be set in the next driver.<br />

Syntax:<br />

set terminal next {} { } {} {}<br />

{""} {} title {""}<br />

where is default, which sets all options to their defaults; is either new or old, where<br />

old invokes the old single window; is either color or monochrome; is either solid<br />

or dashed; "" is the name of a valid PostScript font; is the size of the font in<br />

PostScript points; and is the title for the GnuTerm window. Defaults are new, monochrome,<br />

dashed, "Helvetica", 14pt.<br />

Examples:

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

Saved successfully!

Ooh no, something went wrong!