Term-Gnuplot

 view release on metacpan or  search on metacpan

GnuplotTerminals.pod  view on Meta::CPAN


The size <x,y> is given in pixels---it defaults to 640x480.  The number of
pixels can be also modified by scaling with the C<set size> command.
C<crop> trims blank space from the edges of the completed plot, resulting
in a smaller final image size. Default is C<nocrop>.

Each color must be of the form 'xrrggbb', where x is the literal character
'x' and 'rrggbb' are the red, green and blue components in hex.  For example,
'x00ff00' is green.  The background color is set first, then the border
colors, then the X & Y axis colors, then the plotting colors.  The maximum
number of colors that can be set is 256.

Examples:

      set terminal png medium size 640,480 \
                       xffffff x000000 x404040 \
                       xff0000 xffa500 x66cdaa xcdb5cd \
                       xadd8e6 x0000ff xdda0dd x9500d3    # defaults

which uses white for the non-transparent background, black for borders, gray
for the axes, and red, orange, medium aquamarine, thistle 3, light blue, blue,
plum and dark violet for eight plotting colors.

      set terminal png font arial 14 size 800,600

which searches for a TrueType font with face name 'arial' in the directory
specified by the environment variable GDFONTPATH and 14pt font size.

      set terminal png transparent xffffff \
                       x000000 x202020 x404040 x606060 \
                       x808080 xA0A0A0 xC0C0C0 xE0E0E0 \

which uses white for the transparent background, black for borders, dark
gray for axes, and a gray-scale for the six plotting colors.




=head1 ggi

The C<ggi> driver can run on different targets as X or svgalib.

Syntax:

   set terminal ggi [acceleration <integer>] [[mode] {mode}]

In X the window cannot be resized using window manager handles, but the
mode can be given with the mode option, e.g.:

 - V1024x768
 - V800x600
 - V640x480
 - V320x200

Please refer to the ggi documentation for other modes. The 'mode' keyword
is optional. It is recommended to select the target by environment variables
as explained in the libggi manual page. To get DGA on X, you should for
example

   bash> export GGI_DISPLAY=DGA
   csh>  setenv GGI_DISPLAY DGA

'acceleration' is only used for targets which report relative pointer
motion events (e.g. DGA) and is a strictly positive integer multiplication
factor for the relative distances.  The default for acceleration is 7.

Examples:

   set term ggi acc 10
   set term ggi acc 1 mode V1024x768
   set term ggi V1024x768



=head1 gif

The C<gif> terminal driver generates output in GIF format.  It uses Thomas
Boutell's gd library, which is available from http://www.boutell.com/gd/
Support for GIF output was removed from the gd library beginning with 
version 1.6; newer versions support PNG output instead.

 #ifdef PNG_FOR_GIF


>>> This copy of gnuplot was configured to produce PNG images <<<
>>> instead of GIF images when 'set term gif' is selected.    <<<

 #endif


Syntax:

      set terminal gif {transparent} {interlace}
                       {tiny | small | medium | large | giant}
                       {size <x>,<y>}
                       {<color0> <color1> <color2> ...}

C<transparent> instructs the driver to generate transparent GIFs.  The first
color will be the transparent one.

C<interlace> instructs the driver to generate interlaced GIFs.

The choice of fonts is C<tiny> (5x8 pixels), C<small> (6x12 pixels), C<medium>
(7x13 Bold), C<large> (8x16) or C<giant> (9x15 pixels)

The size <x,y> is given in pixels---it defaults to 640x480.  The number of
pixels can be also modified by scaling with the C<set size> command.

Each color must be of the form 'xrrggbb', where x is the literal character
'x' and 'rrggbb' are the red, green and blue components in hex.  For example,
'x00ff00' is green.  The background color is set first, then the border
colors, then the X & Y axis colors, then the plotting colors.  The maximum
number of colors that can be set is 256.

Examples:

      set terminal gif small size 640,480 \
                       xffffff x000000 x404040 \
                       xff0000 xffa500 x66cdaa xcdb5cd \
                       xadd8e6 x0000ff xdda0dd x9500d3    # defaults



( run in 2.249 seconds using v1.01-cache-2.11-cpan-2398b32b56e )