Manual Page Result
0
Command: plot | Section: 3 | Source: UNIX v10 | File: plot.3
PLOT(3) Library Functions Manual PLOT(3)
NAME
vec, move, etc. - plot graphics interface
SYNOPSIS
#include <plot.h>
openpl(s)
char *s;
closepl()
erase()
move(x, y)
double x, y;
rmove(dx, dy)
double dx, dy;
point(x, y)
double dx, dy;
vec(x, y)
double x, y;
rvec(dx, dy)
double dx, dy;
line(x1, y1, x2, y2)
double x1, y1, x2, y2;
arc(x1, y1, x2, y2, x, y, r)
double x1, y1, x2, y2, x, y, r;
circle(xc, yc, r)
double xc, yc, r;
box(x1, y1, x2, y2)
double x1, y1, x2, y2;
sbox(x1, y1, x2, y2)
double x1, y1, x2, y2;
parabola(x1, y1, x2, y2, x3, y3)
double x1, y1, x2, y2, x3, y3;
fill(n, arr) int n[];
double *arr[];
poly(n, arr) int n[];
double *arr[];
spline(n, arr)
int n[];
double *arr[];
cspline(n, arr)
int n[];
double *arr[];
fspline(n, arr)
int n[];
double *arr[];
lspline(n, arr)
int n[];
double *arr[];
dspline(n, arr)
int n[];
double *arr[];
text(s)
char *s;
color(s)
char *s;
cfill(s)
char *s;
pen(s)
char *s;
range(x1, y1, x2, y2)
double x1, y1, x2, y2;
frame(x1, y1, x2, y2)
double x1, y1, x2, y2;
grade(x)
double x;
save()
restore()
ppause()
DESCRIPTION
These functions generate either a device-independent graphic stream
(see plot(5)) or device-dependent graphics commands. The include file
<plot.h> is used only for device-independent output. An alternative
include file, <iplot.h>, supports device-independent output using iden-
tically named functions of integer, instead of double, arguments.
Libraries for different devices are loaded with the following ld(1)
flags:
-lplot general stream output
-l2621 HP2621 terminal
-l4014 Tektronix 4014 terminal
-ltr Troff input, tuned for the Mergenthaler Linotron 202 phototype-
setter
-lpen HP7580 pen plotter
-l5620 5620 terminal running mux
String arguments are null-terminated and may not contain embedded new-
lines. For details on string arguments, see plot(5). Poly, fill, and
the various spline functions take an integer array and an array of
pointers to double floating point arrays. The integers specify the
number of vertices (x-y pairs) in the floating point array. The last
integer entry should be 0.
SEE ALSO
plot(1), plot(5)
BUGS
The -ltr library should be tuned for PostScript.
PLOT(3)