Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

plot(3X)

gps(4)

term(5)

graph(1G)

tplot(1G)

PLOT(4)                              SysV                              PLOT(4)



NAME
     plot - graphics interface

DESCRIPTION
     Files of this format are produced by routines described in plot(3X) and
     are interpreted for various devices by commands described in tplot(1G).
     A graphics file is a stream of plotting instructions.  Each instruction
     consists of an ASCII letter usually followed by bytes of binary
     information.  The instructions are executed in order.  A point is
     designated by four bytes representing the x and y values; each value is a
     signed integer.  The last designated point in an l, m, n, or p
     instruction becomes the "current point" for the next instruction.

     Each of the following descriptions begins with the name of the
     corresponding routine in plot(3X).

     m  move:  The next four bytes give a new current point.

     n  cont:  Draw a line from the current point to the point given by the
        next four bytes (see tplot(1G)).

     p  point:  Plot the point given by the next four bytes.

     l  line:  Draw a line from the point given by the next four bytes to the
        point given by the following four bytes.

     t  label:  Place the following ASCII string so that its first character
        falls on the current point.  The string is terminated by a newline.

     e  erase:  Start another frame of output.

     f  linemod:  Take the following string, up to a newline, as the style for
        drawing further lines.  The styles are "dotted", "solid",
        "longdashed", "shortdashed", and "dotdashed".  Effective only for the
        -T4014 and -Tver options of tplot(1G) (Tektronix 4014 terminal and
        Versatec plotter).

     s  space:  The next four bytes give the lower left corner of the plotting
        area; the following four give the upper right corner.  The plot will
        be magnified or reduced to fit the device as closely as possible.

     Space settings that exactly fill the plotting area with unity scaling
     appear below for devices supported by the filters of tplot(1G).  The
     upper limit is just outside the plotting area.  In every case the
     plotting area is taken to be square; points outside may be displayable on
     devices whose face is not square.

          DASI 300          space(0, 0, 4096, 4096);
          DASI 300s         space(0, 0, 4096, 4096);
          DASI 450          space(0, 0, 4096, 4096);
          TEKTRONIX 4014    space(0, 0, 3120, 3120);
          Versatec plotter  space(0, 0, 2048, 2048);

SEE ALSO
     plot(3X), gps(4), term(5).
     graph(1G), tplot(1G) in the SysV Command Reference.

WARNING
     The plotting library plot(3X) and the curses library curses(3X) both use
     the names erase() and move().  The curses versions are macros.  If you
     need both libraries, put the plot(3X) code in a different source file
     than the curses(3X) code, and/or #undef move() and erase() in the
     plot(3X) code.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026