Download gnuplot documentation
Transcript
210
gnuplot 4.6
Pango, the library used to layout the text, is based on utf-8. Thus, the pngcairo terminal has to convert
from your encoding to utf-8. The default input encoding is based on your ’locale’. If you want to use another
encoding, make sure gnuplot knows which one you are using. See encoding (p. 110) for more details.
Pango may give unexpected results with fonts that do not respect the unicode mapping. With the Symbol
font, for example, the pngcairo terminal will use the map provided by http://www.unicode.org/ to translate character codes to unicode. Note that "the Symbol font" is to be understood as the Adobe Symbol
.PFB". Alternatively, the OpenSymbol font, distributed
font, distributed with Acrobat Reader as "SY
with OpenOffice.org as "opens .ttf", offers the same characters. Microsoft has distributed a Symbol font
("symbol.ttf"), but it has a different character set with several missing or moved mathematic characters. If
you experience problems with your default setup (if the demo enhancedtext.dem is not displayed properly
for example), you probably have to install one of the Adobe or OpenOffice Symbol fonts, and remove the
Microsoft one. Other non-conform fonts, such as "wingdings" have been observed working.
The rendering of the plot cannot be altered yet. To obtain the best output possible, the rendering involves two
mechanisms : antialiasing and oversampling. Antialiasing allows to display non-horizontal and non-vertical
lines smoother. Oversampling combined with antialiasing provides subpixel accuracy, so that gnuplot can
draw a line from non-integer coordinates. This avoids wobbling effects on diagonal lines (’plot x’ for example).
Postscript
Several options may be set in the postscript driver.
Syntax:
set terminal postscript {default}
set terminal postscript {landscape | portrait | eps}
{enhanced | noenhanced}
{defaultplex | simplex | duplex}
{fontfile [add | delete] "<filename>"
| nofontfiles} {{no}adobeglyphnames}
{level1 | leveldefault}
{color | colour | monochrome}
{background <rgbcolor> | nobackground}
{solid | dashed}
{dashlength | dl <DL>}
{linewidth | lw <LW>}
{rounded | butt}
{clip | noclip}
{palfuncparam <samples>{,<maxdeviation>}}
{size <XX>{unit},<YY>{unit}}
{blacktext | colortext | colourtext}
{{font} "fontname{,fontsize}" {<fontsize>}}
{fontscale <scale>}
If you see the error message
"Can’t find PostScript prologue file ... "
Please see and follow the instructions in postscript prologue (p. 213).
landscape and portrait choose the plot orientation. eps mode generates EPS (Encapsulated PostScript)
output, which is just regular PostScript with some additional lines that allow the file to be imported into a
variety of other applications. (The added lines are PostScript comment lines, so the file may still be printed
by itself.) To get EPS output, use the eps mode and make only one plot per file. In eps mode the whole
plot, including the fonts, is reduced to half of the default size.
enhanced enables enhanced text mode features (subscripts, superscripts and mixed fonts). See enhanced
(p. 23) for more information. blacktext forces all text to be written in black even in color mode;
Duplexing in PostScript is the ability of the printer to print on both sides of the same sheet of paper. With
defaultplex, the default setting of the printer is used; with simplex only one side is printed; duplex prints
on both sides (ignored if your printer can’t do it).