next up previous contents index
Next: Font Up: Terminal 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". Several options may be set in cgm.

Syntax:

     set terminal cgm {<mode>} {<color>} {<rotation>} {solid | dashed}
                      {width <plot_width>} {linewidth <line_width>}
                      {"<font>"} {<fontsize>}
                      {<color0> <color1> <color2> ...}

where 5#5mode6#6 is landscape, portrait, or default; 5#5color6#6 is either color or monochrome; 5#5rotation6#6 is either rotate or norotate; solid draws all curves with solid lines, overriding any dashed patterns; 5#5plot_width6#6 is the assumed width of the plot in points; 5#5line_width6#6 is the line width in points (default 1); 5#5font6#6 is the name of a font; and 5#5fontsize6#6 is the size of the font in points (default 12).

By default, cgm uses rotated text for the Y axis label.

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: Font Up: Terminal Previous: Cgi   Contents   Index
Ethan Merritt 2007-03-03