gnuplot documentation
gnuplot documentation
gnuplot documentation
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
186 <strong>gnuplot</strong> 4.3 77 TERMINAL<br />
Fonts listed by fontfile or fontfile add encapsulate the font definitions of the listed font from a postscript<br />
Type 1 or TrueType font file directly into the <strong>gnuplot</strong> output postscript file. Thus, the enclosed font<br />
can be used in labels, titles, etc. See the section postscript fontfile (p. 187) for more details. With<br />
fontfile delete, a fontfile is deleted from the list of embedded files. nofontfiles cleans the list of<br />
embedded fonts.<br />
Examples:<br />
set terminal postscript default # old postscript<br />
set terminal postscript enhanced # old enhpost<br />
set terminal postscript landscape 22 # old psbig<br />
set terminal postscript eps 14 # old epsf1<br />
set terminal postscript eps 22 # old epsf2<br />
set size 0.7,1.4; set term post portrait color "Times-Roman" 14<br />
set term post "VAGRoundedBT_Regular" 14 fontfile "bvrr8a.pfa"<br />
Linewidths and pointsizes may be changed with set style line.<br />
The postscript driver supports about 70 distinct pointtypes, selectable through the pointtype option<br />
on plot and set style line.<br />
Several possibly useful files about <strong>gnuplot</strong>’s PostScript are included in the /docs/psdoc subdirectory of<br />
the <strong>gnuplot</strong> distribution and at the distribution sites. These are "ps symbols.gpi" (a <strong>gnuplot</strong> 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 <strong>gnuplot</strong>), and<br />
"ps fontfile doc.tex" (a LaTeX file which contains a short <strong>documentation</strong> concerning the encapsulation<br />
of LaTeX fonts with a glyph table of the math fonts).<br />
A PostScript file is editable, so once <strong>gnuplot</strong> has created one, you are free to modify it to your heart’s<br />
desire. See the editing postscript (p. 187) section for some hints.<br />
77.53.1 Enhanced postscript<br />
Several terminal types support an enhanced text mode in which additional formatting information is<br />
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, <strong>gnuplot</strong> 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