01.02.2014 Views

GNUPlot Manual

GNUPlot Manual

GNUPlot Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

36 SET-SHOW gnuplot 4.0 125<br />

Type 1 fonts are fully scalable and may be rotated through any angle. If no font is specified, gnuplot<br />

checks the environmental variable GNUPLOT DEFAULT GDFONT to see if there is a preferred default<br />

font.<br />

enhanced enables the enhanced text processing features, (subscripts, superscripts and mixed fonts).<br />

See enhanced (p. 127) for more information. The full enhanced mode syntax is supported by the<br />

PNG/JPEG 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 />

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 png medium size 640,480 \<br />

xffffff x000000 x404040 \<br />

xff0000 xffa500 x66cdaa xcdb5cd \<br />

xadd8e6 x0000ff xdda0dd x9500d3<br />

# defaults<br />

which uses white for the non-transparent background, black for borders, gray for the axes, and red,<br />

orange, medium aquamarine, thistle 3, light blue, blue, plum and dark violet for eight plotting colors.<br />

set terminal png font arial 14 size 800,600<br />

which searches for a TrueType font with face name ’arial’ in the directory specified by the environment<br />

variable GDFONTPATH and 14pt font size.<br />

set terminal png transparent xffffff \<br />

x000000 x202020 x404040 x606060 \<br />

x808080 xA0A0A0 xC0C0C0 xE0E0E0<br />

which uses white for the transparent background, black for borders, dark gray for axes, and a gray-scale<br />

for the six plotting colors.<br />

36.59.54 Png (OLD)<br />

The png terminal driver supports Portable Network Graphics. This old version of the png driver requires<br />

the third-party libraries "libpng" and "zlib". There is a newer png driver, with many more features,<br />

that is preferred if you have libgd version 1.8 or newer.<br />

Syntax:<br />

set terminal png {small | medium | large}<br />

{transparent|notransparent}<br />

{picsize }<br />

{monochrome | gray | color}<br />

{ ...}<br />

transparent instructs the driver to generate transparent PNGs. The first color will be the transparent<br />

one.<br />

The defaults are small (fontsize) and color. Default size of the output is 640*480 pixel. This can be<br />

changed by the option picsize.<br />

Each must be of the form ’xrrggbb’, where x is the literal character ’x’ and ’rrggbb’ are the<br />

red, green and blue components in hex. For example, ’x00ff00’ is green. The background color is set<br />

first, then the border color, then the X & Y axis color, then the plotting colors. The maximum number<br />

of colors that can be set is currently 99.

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

Saved successfully!

Ooh no, something went wrong!