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

Several possibly useful files about gnuplot’s PostScript are included in the /docs/psdoc subdirectory of<br />

the gnuplot distribution and at the distribution sites. These are "ps symbols.gpi" (a gnuplot command<br />

file that, when executed, creates the file "ps symbols.ps" which shows all the symbols available through<br />

the postscript terminal), "ps guide.ps" (a PostScript file that contains a summary of the enhanced<br />

syntax and a page showing what the octal codes produce with text and symbol fonts), "ps file.doc" (a<br />

text file that contains a discussion of the organization of a PostScript file written by gnuplot), and<br />

"ps fontfile doc.tex" (a LaTeX file which contains a short documentation concerning the encapsulation<br />

of LaTeX fonts with a glyph table of the math fonts).<br />

A PostScript file is editable, so once gnuplot has created one, you are free to modify it to your heart’s<br />

desire. See the editing postscript (p. 128) section for some hints.<br />

36.59.55.1 Enhanced postscript Several terminal types support an enhanced text mode in which<br />

additional formatting information is embedded in the text string.<br />

Enhanced Text Control Codes<br />

Control Examples Explanation<br />

^ a^x superscript<br />

_ a_x subscript<br />

@ @x or a@^b_c phantom box (occupies no width)<br />

& &{space} inserts space of specified length<br />

~ ~a{.8-} overprints ’-’ on ’a’, raised by .8<br />

times the current fontsize<br />

Braces can be used to place multiple-character text where a single character is expected (e.g., 2^{10}).<br />

To change the font and/or size, use the full form: {/[fontname][=fontsize | *fontscale] text}. Thus<br />

{/Symbol=20 G} is a 20-point GAMMA and {/*0.75 K} is a K at three-quarters of whatever fontsize<br />

is currently in effect. (The ’/’ character MUST be the first character after the ’{’.)<br />

If the encoding vector has been changed by set encoding, the default encoding vector can be used<br />

instead by following the slash with a dash. This is unnecessary if you use the Symbol font, however —<br />

since /Symbol uses its own encoding vector, gnuplot will not apply any other encoding vector to it.<br />

The phantom box is useful for a@^b c to align superscripts and subscripts but does not work well for<br />

overwriting an accent on a letter. (To do the latter, it is much better to use ’set encoding iso 8859 1’<br />

to change to the ISO Latin-1 encoding vector, which contains a large variety of letters with accents or<br />

other diacritical marks.) Since the box is non-spacing, it is sensible to put the shorter of the subscript<br />

or superscript in the box (that is, after the @).<br />

Space equal in length to a string can be inserted using the ’&’ character. Thus<br />

’abc&{def}ghi’<br />

would produce<br />

’abc<br />

ghi’.<br />

The ’˜ ’ character causes the next character or bracketed text to be overprinted by the following character<br />

or bracketed text. The second text will be horizontally centered on the first. Thus ’˜ a/’ will result in<br />

an ’a’ with a slash through it. You can also shift the second text vertically by preceding the second text<br />

with a number, which will define the fraction of the current fontsize by which the text will be raised or<br />

lowered. In this case the number and text must be enclosed in brackets because more than one character<br />

is necessary. If the overprinted text begins with a number, put a space between the vertical offset and<br />

the text (’˜ {abc}{.5 000}’); otherwise no space is needed (’˜ {abc}{.5 — }’). You can change the font<br />

for one or both strings (’˜ a{.5 /*.2 o}’ — an ’a’ with a one-fifth-size ’o’ on top — and the space between<br />

the number and the slash is necessary), but you can’t change it after the beginning of the string. Neither<br />

can you use any other special syntax within either string. You can, of course, use control characters by<br />

escaping them (see below), such as ’˜ a{\^}’<br />

You can access special symbols numerically by specifying \character-code (in octal), e.g., {/Symbol<br />

\245} is the symbol for infinity.

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

Saved successfully!

Ooh no, something went wrong!