Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ plot(3) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

plot

graph

tplot

     plot

Purpose

     Performs graphic output.

Library

     Graphics Libraries (libplot.a,  libprint.a, lib300.a, and
     others)

Syntax

     void openpl ( )                           void move (x, y)
                                               int x, y;
     void erase ( )
                                               void cont (x, y)
     void label (s)                            int x, y;
     char *s;
                                               void point (x, y)
     void line (x1, y1, x2, y2)                int x, y;
     int  x1, y1, x2, y2;
                                               void linemod (s)
     void circle (x, y, r)                     char *s;
     int x, y, r;
                                               void space (x0, y0, x1, y1)
     void arc (x, y, x0, y0, x1, y1)           int x0, y0, x1, y1;
     int x, y, x0, y0, x1, y1;
                                               void closepl ( )
     Description

     The plot subroutine family  generates graphic output in a
     relatively device-independent manner.   The space subrou-
     tine  must  be used  before  any  of these  functions  to
     declare the  amount of space necessary.   The openpl sub-
     routine must be used before any of the others to open the
     device for  writing.  The closepl subroutine  flushes the
     output.

     The circle  subroutine draws  a circle  of radius  r with
     center at the point (x, y).

     The arc subroutine  draws an arc of a  circle with center
     at  the  point (x, y)  between  the  points (x0, y0)  and
     (x1, y1).

     String parameters  to the  label and  linemod subroutines
     are terminated  by null  characters and must  not contain
     new-line characters.

     See  "plot"  for  a  description of  the  effect  of  the
     remaining functions.

     These routines appear in several separate libraries.  The
     routines  in  the   libplot.a  library  generate  device-

     independent  output.  The  tplot command  interprets this
     output for a specific device.

     The other versions of these routines each generate output
     for a specific device.   You should normally redirect the
     output of  libprint.a to the  printer.  You can  save the
     output  of libprint.a  in  a regular  file  and print  it
     later.   See the  tplot command  in AIX  Operating System
     Commands Reference for a description of how to do this.

     On  an  IBM  Graphics Printer,  the  horizontal  distance
     between points is  not the same as  the vertical distance
     between  points.  This  means that  arcs and  circles are
     drawn  as ellipses.   Similarly, drawing  a square  (with
     four calls to the  line subroutine) produces a rectangle.
     To adjust for this, call the space subroutine with appro-
     priate scaling factors.

     Files

     /usr/lib/libplot.a  Produces output for tplot filters
     /usr/lib/libprint.a For an IBM PC Graphics Printer
     /usr/lib/lib300.a   For DASI 300
     /usr/lib/lib300s.a  For DASI 300s
     /usr/lib/lib300S.a  For DASI 300S
     /usr/lib/lib450.a   For DASI 450
     /usr/lib/lib4014.a  For Tektronix 4014

     Related Information

     In this book:  "plot."

     The graph and tplot commands in AIX Operating System Com-
     mands Reference.

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