01.02.2014 Views

GNUPlot Manual

GNUPlot Manual

GNUPlot Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

36 SET-SHOW gnuplot 4.0 65<br />

36.18 Encoding<br />

The set encoding command selects a character encoding. Syntax:<br />

set encoding {}<br />

show encoding<br />

Valid values are<br />

default - tells a terminal to use its default encoding<br />

iso_8859_1 - the most common Western European font used by many<br />

Unix workstations and by MS-Windows. This encoding is<br />

known in the PostScript world as ’ISO-Latin1’.<br />

iso_8859_2 - used in Central and Eastern Europe<br />

iso_8859_15 - a variant of iso_8859_1 that includes the Euro symbol<br />

cp850 - codepage for OS/2<br />

cp852 - codepage for OS/2<br />

cp437 - codepage for MS-DOS<br />

koi8r - popular Unix cyrillic encoding<br />

Generally you must set the encoding before setting the terminal type. Note that encoding is not supported<br />

by all terminal drivers and that the device must be able to produce the desired non-standard<br />

characters. The PostScript and X11 terminals support all encodings. OS/2 Presentation Manager<br />

switches automatically to codepage 912 for iso 8859 2.<br />

36.19 Fit<br />

The fit setting defines where the fit command writes its output. If this option was built into your version<br />

of gnuplot, it also controls whether parameter errors from the fit will be written into variables.<br />

Syntax:<br />

set fit {logfile {""}} {{no}errorvariables}<br />

unset fit<br />

show fit<br />

The argument must be enclosed in single or double quotes.<br />

If no filename is given or unset fit is used the log file is reset to its default value "fit.log" or the value<br />

of the environmental variable FIT LOG.<br />

Users of DOS-like platforms should note that the \ character has special significance in double-quoted<br />

strings, so single-quotes should be used for filenames in different directories, or you have to write \\ for<br />

each \. Or you can just use forward slashes, even though this is DOS.<br />

If the given logfile name ends with a / or \, it is interpreted to be a directory name, and the actual<br />

filename will be "fit.log" in that directory.<br />

If the errorvariables option is turned on, the error of each fitted parameter computed by fit will be<br />

copied to a user-defined variable whose name is formed by appending " err" to the name of the parameter<br />

itself. This is useful mainly to put the parameter and its error onto a plot of the data and the fitted<br />

function, for reference, as in:<br />

set fit errorvariables<br />

fit f(x) ’datafile’ using 1:2 via a, b<br />

print "error of a is:", a_err<br />

set label ’a=%6.2f’, a, ’+/- %6.2f’, a_err<br />

plot ’datafile’ using 1:2, f(x)<br />

36.20 Fontpath<br />

The fontpath setting defines additional locations for font files searched when including font files. Currently<br />

only the postscript terminal supports fontpath. If a file cannot be found in the current directory,

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

Saved successfully!

Ooh no, something went wrong!