|
|
1.1 root 1: .TH PLOT 3
2: .CT 2 comm_term
3: .SH NAME
4: vec, move, etc. \(mi plot graphics interface
5: .SH SYNOPSIS
6: .nf
7: .2C
8: .B #include <plot.h>
9: .PP
10: .B openpl(s)
11: .B char *s;
12: .PP
13: .B closepl()
14: .PP
15: .B erase()
16: .PP
17: .B move(x, y)
18: .B double x, y;
19: .PP
20: .B rmove(dx, dy)
21: .B double dx, dy;
22: .PP
23: .B point(x, y)
24: .B double dx, dy;
25: .PP
26: .B vec(x, y)
27: .B double x, y;
28: .PP
29: .B rvec(dx, dy)
30: .B double dx, dy;
31: .PP
32: .B line(x1, y1, x2, y2)
33: .B double x1, y1, x2, y2;
34: .PP
35: .B "arc(x1, y1, x2, y2, x, y, r)"
36: .B "double x1, y1, x2, y2, x, y, r;"
37: .PP
38: .B circle(xc, yc, r)
39: .B double xc, yc, r;
40: .PP
41: .B box(x1, y1, x2, y2)
42: .B double x1, y1, x2, y2;
43: .PP
44: .B sbox(x1, y1, x2, y2)
45: .B double x1, y1, x2, y2;
46: .PP
47: .B "parabola(x1, y1, x2, y2, x3, y3)"
48: .B "double x1, y1, x2, y2, x3, y3;"
49: .PP
50: .B fill(n, arr) int n[];
51: .B double *arr[];
52: .PP
53: .B poly(n, arr) int n[];
54: .B double *arr[];
55: .PP
56: .B spline(n, arr)
57: .B int n[];
58: .B double *arr[];
59: .PP
60: .B cspline(n, arr)
61: .B int n[];
62: .B double *arr[];
63: .PP
64: .B fspline(n, arr)
65: .B int n[];
66: .B double *arr[];
67: .PP
68: .B lspline(n, arr)
69: .B int n[];
70: .B double *arr[];
71: .PP
72: .B dspline(n, arr)
73: .B int n[];
74: .B double *arr[];
75: .PP
76: .B text(s)
77: .B char *s;
78: .PP
79: .B color(s)
80: .B char *s;
81: .PP
82: .B cfill(s)
83: .B char *s;
84: .PP
85: .B pen(s)
86: .B char *s;
87: .PP
88: .B range(x1, y1, x2, y2)
89: .B double x1, y1, x2, y2;
90: .PP
91: .B frame(x1, y1, x2, y2)
92: .B double x1, y1, x2, y2;
93: .PP
94: .B grade(x)
95: .B double x;
96: .PP
97: .B save()
98: .PP
99: .B restore()
100: .PP
101: .B ppause()
102: .1C
103: .ft P
104: .SH DESCRIPTION
105: These functions generate either a device-independent
106: graphic stream (see
107: .IR plot (5))
108: or device-dependent graphics commands.
109: The include file
110: .B <plot.h>
111: is used only for device-independent output.
112: An alternative include file,
113: .BR <iplot.h> ,
114: supports device-independent output using identically named
115: functions of integer, instead of double, arguments.
116: .PP
117: Libraries for different devices are loaded with the following
118: .IR ld (1)
119: flags:
120: .TF -lblit
121: .TP
122: .B -lplot
123: general stream output
124: .TP
125: .B -l2621
126: HP2621 terminal
127: .TP
128: .B -l4014
129: Tektronix 4014 terminal
130: .TP
131: .B -ltr
132: Troff input, tuned for the Mergenthaler Linotron 202 phototypesetter
133: .TP
134: .B -lpen
135: HP7580 pen plotter
136: .TP
137: .B -l5620
138: 5620 terminal running
139: .I mux
140: .PD
141: .PP
142: String arguments are null-terminated and may not contain
143: embedded newlines.
144: For details on string arguments, see
145: .IR plot (5).
146: .I Poly, fill,
147: and the various spline functions
148: take an integer array and an array of pointers
149: to double floating point arrays.
150: The integers specify the number of vertices
151: .RI ( x-y
152: pairs)
153: in the floating point array.
154: The last integer entry should be 0.
155: .SH "SEE ALSO"
156: .IR plot (1),
157: .IR plot (5)
158: .SH BUGS
159: The
160: .B -ltr
161: library should be tuned for PostScript.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.