|
|
1.1 root 1: /* Plotting functions for v8 and v9 systems */
2: /* This file is an alternative to plot.h */
3:
4: /* open the plotting output */
5: #define openpl() printf("o\n")
6:
7: /* close the plotting output */
8: #define closepl() printf("cl\n")
9:
10: /* make sure the page or screen is clear */
11: #define erase() printf("e\n")
12:
13: /* plot a point at _x,_y, which becomes current */
14: #define point(_x,_y) printf("poi %d %d\n", _x,_y)
15:
16: /* coordinates to be assigned to lower left and upper right
17: corners of (square) plotting area */
18: #define range(_x,_y,_X,_Y) printf("ra %d %d %d %d\n", _x,_y,_X,_Y)
19:
20: /* place text, first letter at current point, which does not change */
21: #define text(_s) {if(*(_s) == ' ')printf("t \"%s\"\n",_s); else printf("t %s\n", _s); }
22:
23: /* draw line from current point to _x,_y, which becomes current */
24: #define vec(_x,_y) printf("v %d %d\n", _x,_y)
25:
26: /* _x,_y becomes current point */
27: #define move(_x, _y) printf("m %d %d\n", _x, _y)
28:
29: /* specify style for drawing lines: "dotted", "solid", "dotdash" */
30: #define pen(_s) printf("pe %s\n", _s)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.