xref: /csrg-svn/lib/libplot/bitgraph/bg.h (revision 15410)
1 /*	bg.h	4.1	83/11/10	*/
2 /*
3  * Displays plot files on a bbn bitgraph terminal.
4  */
5 
6 #include <stdio.h>
7 #include <math.h>
8 
9 #define ESC	033
10 #define PI	3.141592659
11 
12 /* The graphics address range is 0..XMAX, 0..YMAX. */
13 #define XMAX	768
14 #define YMAX	1024
15 #define scaleX(xi)	((int) ((xi - lowx)*scale +0.5))
16 #define scaleY(yi)	((int) ((yi - lowy)*scale +0.5))
17 
18 extern int currentx;
19 extern int currenty;
20 extern double lowx;
21 extern double lowy;
22 extern double scale;
23