Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
pmi432 / LR02 / Books / gnuplot 4.6 manual.pdf
Скачиваний:
60
Добавлен:
18.03.2015
Размер:
2.22 Mб
Скачать

gnuplot 4.6

205

If you use a driver other than dvips for converting TeX DVI output to PS, you may need to add the following line in your LaTeX document:

\DeclareGraphicsRule{*}{eps}{*}{}

Each picture you made is in a separate le. The rst picture is in, e.g., gure.0, the second in gure.1, and so on.... To place the third picture in your document, for example, all you have to do is:

\includegraphics{figure.2} % LaTeX \epsfbox{figure.2} % plainTeX

The advantage, if any, of the mp terminal over a postscript terminal is editable output. Considerable e ort went into making this output as clean as possible. For those knowledgeable in the Metapost language, the default line types and colors can be changed by editing the arrays lt[] and col[]. The choice of solid vs dashed lines, and color vs black lines can be change by changing the values assigned to the booleans dashedlines and colorlines. If the default tex option was in e ect, global changes to the text of labels can be achieved by editing the vebatimtex...etex block. In particular, a LaTeX preamble can be added if desired, and then LaTeX's built-in size changing commands can be used for maximum exibility. Be sure to set the appropriate MP con guration variable to force Metapost to run LaTeX instead of plainTeX.

Next

Several options may be set in the next driver.

Syntax:

set terminal next {<mode>} {<type> } {<color>} {<dashed>} {"<fontname>"} {<fontsize>} title {"<newtitle>"}

where <mode> is default, which sets all options to their defaults; <type> is either new or old, where old invokes the old single window; <color> is either color or monochrome; <dashed> is either solid or dashed; "<fontname>" is the name of a valid PostScript font; <fontsize> is the size of the font in PostScript points; and <title> is the title for the GnuTerm window. Defaults are new, monochrome, dashed, "Helvetica", 14pt.

Examples:

set term next default set term next 22

set term next color "Times-Roman" 14

set term next color "Helvetica" 12 title "MyPlot" set term next old

Pointsizes may be changed with set linestyle.

Openstep (next)

Several options may be set in the openstep (next) driver.

Syntax:

set terminal openstep {<mode>} {<type> } {<color>} {<dashed>} {"<fontname>"} {<fontsize>} title {"<newtitle>"}

where <mode> is default, which sets all options to their defaults; <type> is either new or old, where old invokes the old single window; <color> is either color or monochrome; <dashed> is either solid or dashed; "<fontname>" is the name of a valid PostScript font; <fontsize> is the size of the font in PostScript points; and <title> is the title for the GnuTerm window. Defaults are new, monochrome, dashed, "Helvetica", 14pt.

Examples:

set term openstep default set term openstep 22

set term openstep color "Times-Roman" 14

set term openstep color "Helvetica" 12 title "MyPlot" set term openstep old

206

gnuplot 4.6

Pointsizes may be changed with set linestyle.

Pbm

Syntax:

set terminal pbm {<fontsize>} {<mode>} {size <x>,<y>}

where <fontsize> is small, medium, or large and <mode> is monochrome, gray or color. The default plot size is 640 pixels wide and 480 pixels high. The output size is white-space padded to the nearest multiple of 8 pixels on both x and y. This empty space may be cropped later if needed.

The output of the pbm driver depends upon <mode>: monochrome produces a portable bitmap (one bit per pixel), gray a portable graymap (three bits per pixel) and color a portable pixmap (color, four bits per pixel).

The output of this driver can be used with various image conversion and manipulation utilities provided by NETPBM. Based on Jef Poskanzer's PBMPLUS package, NETPBM provides programs to convert the above PBM formats to GIF, TIFF, MacPaint, Macintosh PICT, PCX, X11 bitmap and many others. Complete information is available at http://netpbm.sourceforge.net/.

Examples:

set

terminal

pbm

small

monochrome

# defaults

set

terminal

pbm

color

medium size 800,600

 

set output '| pnmrotate 45 | pnmtopng > tilted.png' # uses NETPBM

Pdf

This terminal produces les in the Adobe Portable Document Format (PDF), useable for printing or display with tools like Acrobat Reader

Syntax:

set terminal pdf {monochrome|color|colour} {{no}enhanced}

{fname "<font>"} {fsize <fontsize>}

{font "<fontname>{,<fontsize>}"} {fontscale <scale>} {linewidth <lw>} {rounded|butt}

{solid|dashed} {dl <dashlength>}} {size <XX>{unit},<YY>{unit}}

The default is to use a di erent color for each line type. Selecting monochome will use black for all linetypes, in which case you probably want to select dashed to distinguish line types. Even in in mono mode you can still use explicit colors for lled areas or linestyles.

where <font> is the name of the default font to use (default Helvetica) and <fontsize> is the font size (in points, default 12). For help on which fonts are available or how to install new ones, please see the documentation for your local installation of pd ib.

The enhanced option enables enhanced text processing features (subscripts, superscripts and mixed fonts). See enhanced (p. 23).

The width of all lines in the plot can be increased by the factor <n> speci ed in linewidth. Similarly dashlength is a multiplier for the default dash spacing.

rounded sets line caps and line joins to be rounded; butt is the default, butt caps and mitered joins.

The default size for PDF output is 5 inches by 3 inches. The size option changes this to whatever the user requests. By default the X and Y sizes are taken to be in inches, but other units are possible (currently only cm).

Соседние файлы в папке Books