xref: /original-bsd/lib/libplot/t4013/space.c (revision 0f30d223)
1 #ifndef lint
2 static char sccsid[] = "@(#)space.c	1.1 (Berkeley) 01/02/85";
3 #endif
4 
5 extern float botx;
6 extern float boty;
7 extern float obotx;
8 extern float oboty;
9 extern float scalex;
10 extern float scaley;
11 extern int scaleflag;
12 space(x0,y0,x1,y1){
13 	botx = 0.;
14 	boty = 0.;
15 	obotx = x0;
16 	oboty = y0;
17 	if(scaleflag)
18 		return;
19 	scalex = 780./(x1-x0);
20 	scaley = 780./(y1-y0);
21 }
22