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 179<br />

set term mp {color | colour | monochrome}<br />

{solid | dashed}<br />

{notex | tex | latex}<br />

{magnification }<br />

{psnfss | psnfss-version7 | nopsnfss}<br />

{prologues }<br />

{a4paper}<br />

{amstex}<br />

{""} {}<br />

The option color causes lines to be drawn in color (on a printer or display that supports it),<br />

monochrome (or nothing) selects black lines. The option solid draws solid lines, while dashed (or<br />

nothing) selects lines with different patterns of dashes. If solid is selected but color is not, nearly all<br />

lines will be identical. This may occasionally be useful, so it is allowed.<br />

The option notex bypasses TeX entirely, therefore no TeX code can be used in labels under this option.<br />

This is intended for use on old plot files or files that make frequent use of common characters like $ and<br />

% that require special handling in TeX.<br />

The option tex sets the terminal to output its text for TeX to process.<br />

The option latex sets the terminal to output its text for processing by LaTeX. This allows things like<br />

\frac for fractions which LaTeX knows about but TeX does not. Note that you must set the environment<br />

variable TEX to the name of your LaTeX executable (normally latex) if you use this option or use mpost<br />

–tex= .... Otherwise metapost will try and use TeX to process the<br />

text and it won’t work.<br />

Changing font sizes in TeX has no effect on the size of mathematics, and there is no foolproof way<br />

to make such a change, except by globally setting a magnification factor. This is the purpose of the<br />

magnification option. It must be followed by a scaling factor. All text (NOT the graphs) will be<br />

scaled by this factor. Use this if you have math that you want at some size other than the default 10pt.<br />

Unfortunately, all math will be the same size, but see the discussion below on editing the MP output.<br />

mag will also work under notex but there seems no point in using it as the font size option (below)<br />

works as well.<br />

The option psnfss uses postscript fonts in combination with LaTeX. Since this option only makes sense,<br />

if LaTeX is being used, the latex option is selected automatically. This option includes the following<br />

packages for LaTeX: inputenc(latin1), fontenc(T1), mathptmx, helvet(scaled=09.2), courier, latexsym<br />

and textcomp.<br />

The option psnfss-version7 uses also postscript fonts in LaTeX (option latex is also automatically<br />

selected), but uses the following packages with LaTeX: inputenc(latin1), fontenc(T1), times, mathptmx,<br />

helvet and courier.<br />

The option nopsnfss is the default and uses the standard font (cmr10 if not otherwise specified).<br />

The option prologues takes a value as an additional argument and adds the line prologues:=<br />

to the metapost file. If a value of 2 is specified metapost uses postscript fonts to generate the eps-file,<br />

so that the result can be viewed using e.g. ghostscript. Normally the output of metapost uses TeX fonts<br />

and therefore has to be included in a (La)TeX file before you can look at it.<br />

The option noprologues is the default. No additional line specifying the prologue will be added.<br />

The option a4paper adds a [a4paper] to the documentclass. Normally letter paper is used (default).<br />

Since this option is only used in case of LaTeX, the latex option is selected automatically.<br />

The option amstex automatically selects the latex option and includes the following LaTeX packages:<br />

amsfonts, amsmath(intlimits). By default these packages are not included.<br />

A name in quotes selects the font that will be used when no explicit font is given in a set label or<br />

set title. A name recognized by TeX (a TFM file exists) must be used. The default is "cmr10" unless<br />

notex is selected, then it is "pcrr8r" (Courier). Even under notex, a TFM file is needed by Metapost.<br />

The file pcrr8r.tfm is the name given to Courier in LaTeX’s psnfss package. If you change the font<br />

from the notex default, choose a font that matches the ASCII encoding at least in the range 32-126.<br />

cmtt10 almost works, but it has a nonblank character in position 32 (space).

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

Saved successfully!

Ooh no, something went wrong!