Vector Plotting Library & Metafile Drivers (plotlib)

The plotlib directory contains the Ocean Mapping Group’s device-independent 2D vector plotting library (plotlib), along with its X11 metafile viewer (viewmeta), HP-GL/PostScript hardware drivers (hpgl, plotdriver), pen-sorting optimizer (pensort), and Fortran-77 bindings (plotlibf77).

All 2D scientific plotting programs in the plot/, ray/, class/, and vers/ directories call plotlib routines (plot_open, plot_move, plot_line, plot_pen, plot_text, plot_close) to generate binary vector metafiles (typically plot.meta), which can then be inspected interactively or converted to PostScript/HP-GL.


Core Library & Language Bindings

  • plotlib β€” Core C API for generating device-independent 2D vector plot metafiles (plot_open, plot_move, plot_line, plot_text, plot_pen, plot_close).
  • plotlibf77 β€” Fortran-77 wrapper routines exposing plotlib primitives to legacy Fortran acoustic and ray-tracing programs.
  • unix β€” Low-level Unix file I/O, process spawning, and environment helpers for plotlib.

Metafile Viewers, Drivers & Post-Processors

  • viewmeta β€” Interactive X11 viewer for inspecting binary plot.meta vector graphics files on screen.
  • plotdriver β€” Backend device driver translating plot.meta instructions into target plotter commands.
  • hpgl β€” Hewlett-Packard Graphics Language (HP-GL) output generator (paired with hpgl2ps for PostScript conversion).
  • pensort β€” Sorts vector drawing commands by pen number/color to minimize mechanical pen changes on physical flatbed/drum plotters.
  • penstat β€” Reports pen usage statistics, bounding boxes, and total stroke lengths in a metafile.
  • plottest β€” Diagnostic test program exercising plotlib line styles, text scaling, and pen colors.

Table of contents