plot
command-line options
The plot filter plot
translates GNU graphics metafiles to other
formats. The `-T' option is used to specify the output format or
display type. Files in metafile format are produced by GNU
graph
, pic2plot
, tek2plot
, plotfont
, and
other applications that use the GNU libplot
graphics library.
For technical details on the metafile format, see section The Graphics Metafile Format.
Input file names may be specified anywhere on the command line. That is, the relative order of file names and command-line options does not matter. If no file names are specified, or the file name `-' is specified, the standard input is read. The output file is written to standard output, unless the `-T X' option is specified. In that case the output is displayed in a window or windows on an X Window System display, and there is no output file.
The full set of command-line options is listed below. There are four sorts of option:
plot
, i.e., relevant only if no
display type or output format is specified with the `-T' option.
Each option that takes an argument is followed, in parentheses, by the type and default value of the argument.
The following options set the values of drawing parameters.
idraw
-editable Postscript, the format used by the xfig
drawing editor, the Hewlett--Packard PCL 5 printer language, the
Hewlett--Packard Graphics Language (by default, HP-GL/2), Tektronix
format, and device-independent GNU graphics metafile format.
plot -T
X
or plot -T tek
, which plot in real time, will separate
successive frames by screen erasures. plot -T pnm
, plot -T
gif
, plot -T ai
, plot -T ps
, plot -T fig
,
plot -T pcl
, and plot -T hpgl
, which do not plot in real
time, will display only the last frame of any multi-frame page.
The default behavior, if `-p' is not used, is to display all pages.
For example, plot -T X
displays each page in its own X
window. If the `-T pnm' option, the `-T gif' option, the
`-T ai' option, or the `-T fig' option is used, the default
behavior is to display only the first page, since files in PNM,
pseudo-GIF, AI, or Fig format may contain only a single page of
graphics.
Most metafiles produced by the GNU plotting utilities (e.g., by raw
graph
) contain only a single page, consisting of two frames: an
empty one to clear the display, and a second one containing graphics.
graph
. This is an
alternative form of multiplotting (see section Multiplotting: placing multiple plots on a single page).
plot -T X
,
plot -T pnm
, and plot -T gif
, for which the graphics
display size can be expressed in terms of pixels. The environment
variable BITMAPSIZE
can equally well be used to specify the size.
For backward compatibility, the X resource Xplot.geometry
,
which can be set by the user, may be used to set the window size,
instead of `--bitmap-size' or BITMAPSIZE
.
MAX_LINE_LENGTH
can also be used to specify the maximum line length. This option has no
effect on plot -T tek
or raw plot
, since they draw
polylines in real time and have no buffer limitations.
plot -T ai
,
plot -T ps
, plot -T fig
, plot -T pcl
, and
plot -T hpgl
. "letter" means an 8.5in by 11in page.
Any ISO page size in the range "a0"..."a4" or ANSI page size in the
range "a"..."e" may be specified ("letter" is an alias for "a"
and "tabloid" is an alias for "b"). "legal", "ledger", and "b5"
are recognized page sizes also. The environment variable
PAGESIZE
can equally well be used to specify the page size.
For plot -T ai
and plot -T ps
, the graphics display within
which the plot is drawn will be a square region centered on the
specified page, occupying its full width (with allowance being made for
margins). For plot -T fig
, it will be a square region located of
the same size, located in the upper left corner of an xfig
display. For plot -T pcl
and plot -T hpgl
, the graphics
display will be a square region of the same size, but may be positioned
differently. Fine control over its positioning on the page may be
accomplished by setting certain environment variables (see section Environment variables).
The following options set the initial values of additional drawing parameters. All of these may be overridden by directives in the metafile itself. In fact, these options are useful mostly for plotting old metafiles in the pre-GNU `plot(5)' format, which did not include such directives.
plot -T X
,
plot -T pnm
, and plot -T gif
. An unrecognized name
sets the color to the default. For information on what names are
recognized, see section Specifying Colors by Name. The environment variable
BG_COLOR
can equally well be used to specify the background
color.
If the `-T gif' option is used, a transparent pseudo-GIF may be
produced by setting the TRANSPARENT_COLOR
environment variable to
the name of the background color. See section Environment variables.
plot -T pnm
, plot
-T gif
, plot -T pcl
, plot -T hpgl
, plot -T tek
,
and raw plot
, for all of which "HersheySerif" is the default.)
Set the font initially used for text (i.e., for `labels') to
font_name. Font names are case-insensitive. If the specified
font is not available, the default font will be used. Which fonts are
available depends on which `-T' option is used. For a list of all
fonts, see section Available text fonts. The plotfont
utility will produce a
character map of any available font. See section The plotfont
Utility.
libplot
graphics library should be used. This is
usually 1/850 times the size of the display, although if `-T X',
`-T pnm', or -T gif
is specified, it is zero. By
convention, a zero-thickness line is the thinnest line that can be
drawn. This is the case in all output formats. Note, however, that the
drawing editors idraw
and xfig
treat zero-thickness lines
as invisible.
plot -T tek
does not support drawing lines with other than a
default thickness, and plot -T hpgl
does not support doing so
if the environment variable HPGL_VERSION
is set to a value less
than "2" (the default).
The following option is relevant only to raw plot
, i.e., relevant
only if no output type is specified with the `-T' option. In this
case plot
outputs a graphics metafile, which may be translated to
other formats by a second invocation of plot
.
META_PORTABLE
to "yes".
plot
will automatically determine which type of GNU metafile
format the input is in. There are two types: binary (the default)
and portable (human-readable). The binary format is machine-dependent.
See section The Graphics Metafile Format.
For compatibility with older plotting software, the reading of input files in the pre-GNU `plot(5)' format is also supported. This is normally a binary format, with each integer in the metafile represented as a pair of bytes. The order of the two bytes is machine dependent. You may specify that input file(s) are in plot(5) format rather than ordinary GNU metafile format by using either the `-h' option ("high byte first") or the `-l' option ("low byte first"), whichever is appropriate. Some non-GNU systems support an ASCII (human-readable) variant of plot(5) format. You may specify that the input is in this format by using the `-A' option. Irrespective of the variant, a file in plot(5) format includes only one page of graphics.
The following options request information.
plot -T X
, plot -T ai
, plot -T ps
,
and plot -T fig
each support the 35 standard Postscript fonts.
plot -T ai
, plot -T pcl
, and plot -T hpgl
support the 45 standard PCL 5 fonts, and plot -T pcl
and
plot -T hpgl
support a number of Hewlett--Packard vector fonts.
All of the preceding, together with plot -T pnm
, plot -T
gif
, and plot -T tek
, support a set of 22 Hershey vector fonts.
Raw plot
in principle supports any of these fonts, since its
output must be translated to other formats with plot
. The
plotfont
utility will produce a character map of any available
font. See section The plotfont
Utility.
plot
and the plotting utilities
package, and exit.
Go to the first, previous, next, last section, table of contents.