xref: /csrg-svn/lib/libplot/imagen/space.c (revision 25012)
125001Ssam /*
225001Ssam  * Copyright (c) 1985 Regents of the University of California.
325001Ssam  * All rights reserved.  The Berkeley software License Agreement
425001Ssam  * specifies the terms and conditions for redistribution.
525001Ssam  */
625001Ssam 
725001Ssam #ifndef lint
8*25012Ssam static char sccsid[] = "@(#)space.c	5.2 (Berkeley) 09/21/85";
925001Ssam #endif not lint
1025001Ssam 
1125001Ssam extern float botx;
1225001Ssam extern float boty;
1325001Ssam extern float obotx;
1425001Ssam extern float oboty;
1525001Ssam extern float scalex;
1625001Ssam extern float scaley;
17*25012Ssam 
18*25012Ssam int PlotRes = DEFRES;
19*25012Ssam 
2025001Ssam int scaleflag;
2125001Ssam space(x0,y0,x1,y1){
22*25012Ssam 	botx = 2.;
23*25012Ssam 	boty = 2.;
2425001Ssam 	obotx = x0;
2525001Ssam 	oboty = y0;
2625001Ssam 	if(scaleflag)
2725001Ssam 		return;
28*25012Ssam 	scalex = (8.0 * PlotRes)/(x1-x0);
29*25012Ssam 	scaley = (8.0 * PlotRes)/(y1-y0);
3025001Ssam }
31