next up previous contents index
Next: Cgm font Up: Complete list of terminals Previous: Cgi   Contents   Index


Cgm

The cgm terminal generates a Computer Graphics Metafile, Version 1. This file format is a subset of the ANSI X3.122-1986 standard entitled "Computer Graphics - Metafile for the Storage and Transfer of Picture Description Information".

Syntax:

     set terminal cgm {color | monochrome} {solid | dashed} {{no}rotate}
                      {<mode>} {width <plot_width>} {linewidth <line_width>}
                      {font "<fontname>,<fontsize>"}
                      {<color0> <color1> <color2> ...}

solid draws all curves with solid lines, overriding any dashed patterns; 4#4mode5#5 is landscape, portrait, or default; 4#4plot_width5#5 is the assumed width of the plot in points; 4#4line_width5#5 is the line width in points (default 1); 4#4fontname5#5 is the name of a font (see list of fonts below) 4#4fontsize5#5 is the size of the font in points (default 12).

The first six options can be in any order. Selecting default sets all options to their default values.

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 plotting colors.

Examples:

     set terminal cgm landscape color rotate dashed width 432 \
                    linewidth 1  'Helvetica Bold' 12       # defaults
     set terminal cgm linewidth 2  14  # wider lines & larger font
     set terminal cgm portrait "Times Italic" 12
     set terminal cgm color solid      # no pesky dashes!



Subsections
next up previous contents index
Next: Cgm font Up: Complete list of terminals Previous: Cgi   Contents   Index
2012-01-07