next up previous contents index
Next: Svga Up: Terminal Previous: Sun   Contents   Index


Svg

This terminal produces files in the W3C Scalable Vector Graphics format.

Syntax:

     set terminal svg {size <x>,<y> {|fixed|dynamic}}
                      {{no}enhanced}
                      {fname "<font>"} {fsize <fontsize>}
                      {font "<fontname>{,<fontsize>}"}
                      {fontfile <filename>}
                      {rounded|butt} {linewidth <lw>}

where 5#5x6#6 and 5#5y6#6 are the size of the SVG plot to generate, dynamic allows a svg-viewer to resize plot, whereas the default setting, fixed, will request an absolute size.

linewidth 5#5w6#6 increases the width of all lines used in the figure by a factor of 5#5w6#6.

5#5font6#6 is the name of the default font to use (default Arial) and 5#5fontsize6#6 is the font size (in points, default 12). Gnuplot does not currently provide a mechanism for embedding fonts in the output file, so svg viewing programs may substitute other fonts when the file is displayed.

The svg terminal supports an enhanced text mode, which allows font and other formatting commands to be embedded in labels and other text strings. The enhanced text mode syntax is shared with other gnuplot terminal types. See enhanced (p. [*]) for more details.

SVG allows you to embed fonts directly into an SVG document, or to provide a hypertext link to the desired font. The fontfile option specifies a local file which is copied into the 5#5defs6#6 section of the resulting SVG output file. This file may either itself contain a font, or may contain the records necessary to create a hypertext reference to the desired font. Gnuplot will look for the requested file using the directory list in the GNUPLOT_FONTPATH environmental variable.


next up previous contents index
Next: Svga Up: Terminal Previous: Sun   Contents   Index
Ethan Merritt 2007-03-03