Commit | Line | Data |
---|---|---|
361be78e RC |
1 | /* hp7221.h 4.1 83/11/10 */ |
2 | /* | |
3 | * Displays plot files on an HP7221 plotter. | |
4 | * Cloned from bgplot.c and gigiplot.c by Jim Kleckner | |
5 | * Thu Jun 30 13:35:04 PDT 1983 | |
6 | * Requires a handshaking program such as hp7221cat to get | |
7 | * the plotter open and ready. | |
8 | */ | |
9 | ||
10 | #include <stdio.h> | |
11 | #include <math.h> | |
12 | ||
13 | #define ESC 033 | |
14 | #define PI 3.141592659 | |
15 | #define ENDOFSTRING 03 | |
16 | ||
17 | /* The graphics address range is 0..XMAX, 0..YMAX. */ | |
18 | #define XMAX 1800 | |
19 | #define YMAX 1800 | |
20 | ||
21 | #define scaleX(xi) ((int) ((xi - lowx)*scale +0.5)) | |
22 | #define scaleY(yi) ((int) ((yi - lowy)*scale +0.5)) | |
23 | ||
24 | extern int currentx; | |
25 | extern int currenty; | |
26 | extern double lowx; | |
27 | extern double lowy; | |
28 | extern double scale; |