GNUPlot Manual
GNUPlot Manual
GNUPlot Manual
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
66 gnuplot 4.0 36 SET-SHOW<br />
the directories in fontpath are tried. Further documentation concerning the supported file formats is<br />
included in the terminal postscript section of the documentation.<br />
Syntax:<br />
set fontpath {"pathlist1" {"pathlist2"...}}<br />
show fontpath<br />
Path names may be entered as single directory names, or as a list of path names separated by a platformspecific<br />
path separator, eg. colon (’:’) on Unix, semicolon (’;’) on DOS/Windows/OS/2/Amiga platforms.<br />
The show fontpath, save and save set commands replace the platform-specific separator with<br />
a space character (’ ’) for maximum portability. If a directory name ends with an exclamation mark (’!’)<br />
also the subdirectories of this directory are searched for font files.<br />
If the environmental variable GNUPLOT FONTPATH is set, its contents are appended to fontpath. If<br />
it is not set, a system dependent default value is used. It is set by testing several directories for existence<br />
when using the fontpath the first time. Thus, the first call of set fontpath, show fontpath, save<br />
fontpath, plot, or splot with embedded font files takes a little more time. If you want to save this time<br />
you may set the environmental variable GNUPLOT FONTPATH since probing is switched off, then.<br />
You can find out which is the default fontpath by using show fontpath.<br />
However, show fontpath prints the contents of user defined fontpath and system fontpath separately.<br />
Also, the save and save set commands save only the user specified parts of fontpath, for portability<br />
reasons.<br />
Many other terminal drivers access TrueType fonts via the gd library. For these drivers the font search<br />
path is controlled by the environmental variable GDFONTPATH.<br />
36.21 Format<br />
The format of the tic-mark labels can be set with the set format command.<br />
Syntax:<br />
set format {} {""}<br />
set format {} {’’}<br />
show format<br />
where is either x, y, z, cb, xy, x2, y2 or nothing (which is the same as xy). The length of<br />
the string representing a tic mark (after formatting with ’printf’) is restricted to 100 characters. If the<br />
format string is omitted, the format will be returned to the default "%g". For LaTeX users, the format<br />
"$%g$" is often desirable. If the empty string "" is used, no label will be plotted with each tic, though<br />
the tic mark will still be plotted. To eliminate all tic marks, use unset xtics or unset ytics.<br />
Newline (\n) is accepted in the format string. Use double-quotes rather than single-quotes to enable<br />
such interpretation. See also syntax (p. 26).<br />
The default format for both axes is "%g", but other formats such as "%.2f" or "%3.0em" are often<br />
desirable. Anything accepted by ’printf’ when given a double precision number, and accepted by the<br />
terminal, will work. Some other options have been added. If the format string looks like a floating point<br />
format, then gnuplot tries to construct a reasonable format.<br />
Characters not preceded by "%" are printed verbatim. Thus you can include spaces and labels in your<br />
format string, such as "%g m", which will put " m" after each number. If you want "%" itself, double<br />
it: "%g %%".<br />
See also set xtics (p. 149) for more information about tic labels, and set decimalsign (p. 63) for<br />
how to use non-default decimal separators in numbers printed this way. See also<br />
electron demo (electron.dem).<br />
36.21.1 Format specifiers<br />
The acceptable formats (if not in time/date mode) are: