gnuplot documentation
gnuplot documentation
gnuplot documentation
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
170 <strong>gnuplot</strong> 4.3 77 TERMINAL<br />
GIF images are created using libgd, with optional support for TrueType fonts via libfreetype.<br />
GIF plots may be conveniently viewed by piping the output to the ’display’ program from the ImageMagick<br />
package as follows:<br />
set term gif<br />
set output ’| display gif:-’<br />
View the output from successive plot commands interactively by hitting in the display window.<br />
To save a particular one to disk, left click in the display window and choose save.<br />
Five basic fonts are supported directly by the gd library. These are tiny (5x8 pixels), small (6x12<br />
pixels), medium, (7x13 Bold), large (8x16) or giant (9x15 pixels). These fonts cannot be scaled or<br />
rotated (pure horizontal or vertical text only).<br />
transparent instructs the driver to generate transparent GIFs. The first color will be the transparent<br />
one. Default is notransparent.<br />
enhanced enables the enhanced text processing features, (subscripts, superscripts and mixed fonts).<br />
See enhanced (p. 186) for more information. The full enhanced mode syntax is supported by the<br />
PNG/GIF driver itself, but some of these features are dependent on which version of the underlying<br />
libgd library is present, and which fonts are available.<br />
If your local gd library was built with support for TrueType and Adobe Type 1 fonts, they may be<br />
selected using the ’font {}’ option. is either the full pathname to the font<br />
file, or a font face name that is assumed to be the first part of a filename in one of the directories listed<br />
in the GDFONTPATH environmental variable. That is, ’set term gif font "Face"’ will look for a font<br />
file named either /Face.ttf or /Face.pfa. Both TrueType and Adobe<br />
Type 1 fonts are fully scalable and may be rotated through any angle. If no font is specified, <strong>gnuplot</strong><br />
checks the environmental variable GNUPLOT DEFAULT GDFONT to see if there is a preferred default<br />
font.<br />
The animate option is available only if your local gd library supports the creation of animated gifs. The<br />
default delay between display of successive images may be specified in units of 1/100 second (default<br />
5). The actual delay may vary depending on the program used as a viewer. An animation sequence is<br />
terminated by the next set output or set term command. The optimize option has two effects on<br />
the animation.<br />
1) A single color map is used for the entire animation. This requires that all colors used in any frame of<br />
the animation are already defined in the first frame.<br />
2) If possible, only the portions of a frame that differ from the previous frame are stored in the animation<br />
file. This space saving may not be possible if the animation uses transparency.<br />
Both of these optimizations are intended to produce a smaller output file, but the decrease in size is<br />
probably only significant for long animations or very small frame sizes. The nooptimize option turns<br />
off both of the effects just described. Each frame is stored in its entirety along with a private color<br />
map. Note that it is possible to post-process a non-optimized animation using external utilities, and<br />
this post-processing can yield a smaller file than <strong>gnuplot</strong>’s internal optimization mode. The default is<br />
nooptimize.<br />
The size is given in pixels — it defaults to 640x480. The number of pixels can be also modified<br />
by scaling with the set size command. crop trims blank space from the edges of the completed plot,<br />
resulting in a smaller final image size. Default is nocrop.<br />
Each color must be of the form ’xrrggbb’, where x is the literal character ’x’ and ’rrggbb’ are the red,<br />
green and blue components in hex. For example, ’x00ff00’ is green. The background color is set first,<br />
then the border colors, then the X & Y axis colors, then the plotting colors. The maximum number of<br />
colors that can be set is 256.<br />
Examples:<br />
set terminal gif medium size 640,480 \<br />
xffffff x000000 x404040 \<br />
xff0000 xffa500 x66cdaa xcdb5cd \<br />
xadd8e6 x0000ff xdda0dd x9500d3<br />
# defaults