LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

plot

Translate GNU metafiles to other graphics formats

TLDR

Convert a metafile to PNG
$ plot -T png [input.meta] > [output.png]
copy
Convert a metafile to SVG
$ plot -T svg [input.meta] > [output.svg]
copy
Convert to PostScript with a specific page size
$ plot -T ps --page-size [a4] [input.meta] > [output.ps]
copy
Display a metafile in an X Window
$ plot -T X [input.meta]
copy
Read from stdin and output as PNM
$ cat [input.meta] | plot -T pnm > [output.pnm]
copy
Extract a single page from a multi-page metafile
$ plot -T png -p [3] [input.meta] > [page3.png]
copy

SYNOPSIS

plot [options] [file...]

DESCRIPTION

plot is part of the GNU plotutils package. It translates GNU graphics metafiles (produced by tools like graph) into other graphics formats. Input files may be specified on the command line or read from stdin. The -T option selects the output format.Supported output formats include X Window System display, PNG, PNM (PBM/PGM/PPM), pseudo-GIF, SVG, Adobe Illustrator, PostScript, WebCGM, xfig, HP-GL/2, PCL 5, ReGIS, and Tektronix.

PARAMETERS

-T type, --output-format type

Output type: X, png, pnm, gif, svg, ai, ps, cgm, fig, pcl, hpgl, regis, tek, meta (default: meta).
-p n, --page-number n
Output only page number n from the metafile.
-s, --merge-pages
Combine all pages and frames into a single page.
--page-size size
Page size for ps, svg, ai, cgm, fig, pcl, hpgl output (default: letter). Accepts ISO sizes (a0-a4) and ANSI sizes (a-e).
--bg-color color
Background color name (default: white).
--bitmap-size WxH
Bitmap size in pixels for X, png, pnm, gif output (default: 570x570).
--pen-color color
Initial pen color (default: black).
-f size, --font-size size
Font size as fraction of display width (default: 0.0525).
-F name, --font-name name
Initial font name.
-W width, --line-width width
Line width as fraction of display size. Negative value uses format default.
--max-line-length length
Maximum points in a polygonal line before flushing (default: 500).
--rotation angle
Rotate plot (0, 90, 180, 270 degrees).
--emulate-color option
Replace colors with grayscale shades when set to yes.
-O, --portable-output
Output human-readable GNU metafile format instead of binary.
--help
Display help.
--help-fonts
Show available fonts for the selected output format.
--list-fonts
List available fonts in a single column.
--version
Display version.

CAVEATS

The plot command converts metafiles; it does not plot data directly. Use graph from plotutils to generate metafiles from data, then pipe to plot for format conversion. For interactive data plotting, use gnuplot.

HISTORY

plot is part of GNU plotutils, originally written by Robert Maier. The plotutils package provides tools for generating 2-D vector graphics and is based on the traditional Unix plotting utilities.

SEE ALSO

gnuplot(1), graph(1)

Copied to clipboard
Kai