Credits | Overview | Plotting Styles | Commands | Terminals
--- | --- | --- | --- | ---

## gif

Syntax:

          set terminal gif
                 {{no}enhanced}
                 {{no}transparent} {rounded|butt}
                 {linewidth <lw>} {dashlength <dl>}
                 {tiny | small | medium | large | giant}
                 {font "<face> {,<pointsize>}"} {fontscale <scale>}
                 {size <x>,<y>} {{no}crop}
                 {background <rgb_color>}
                 {animate {delay <d>} {loop <n>} {optimize}}

PNG, JPEG and GIF images are created using the external library libgd. GIF plots may be viewed interactively by piping the output to the 'display' program from the ImageMagick package as follows:

                   set term gif
                   set output '| display gif:-'

You can view the output from successive plot commands interactively by typing <space> in the display window. To save the current plot to a file, left click in the display window and choose save.

transparent instructs the driver to make the background color transparent. Default is notransparent.

The linewidth and dashlength options are scaling factors that affect all lines drawn, i.e. they are multiplied by values requested in various drawing commands.

butt instructs the driver to use a line drawing method that does not overshoot the desired end point of a line. This setting is only applicable for line widths greater than 1. This setting is most useful when drawing horizontal or vertical lines.

The output plot size <x,y> is given in pixels---it defaults to 640x480. Please see additional information under canvas and set size. Blank space at the edges of the finished plot may be trimmed using the crop option, resulting in a smaller final image size. Default is nocrop.

Subtopics

- animate

- fonts