xref: /csrg-svn/lib/libplot/imagen/space.c (revision 61397)
148519Sbostic /*-
2*61397Sbostic  * Copyright (c) 1985, 1993
3*61397Sbostic  *	The Regents of the University of California.  All rights reserved.
448519Sbostic  *
548519Sbostic  * %sccs.include.proprietary.c%
625001Ssam  */
725001Ssam 
825001Ssam #ifndef lint
9*61397Sbostic static char sccsid[] = "@(#)space.c	8.1 (Berkeley) 06/04/93";
1048519Sbostic #endif /* not lint */
1125001Ssam 
1225001Ssam extern float botx;
1325001Ssam extern float boty;
1425001Ssam extern float obotx;
1525001Ssam extern float oboty;
1625001Ssam extern float scalex;
1725001Ssam extern float scaley;
1825012Ssam 
1925012Ssam int PlotRes = DEFRES;
2025012Ssam 
2125001Ssam int scaleflag;
space(x0,y0,x1,y1)2225001Ssam space(x0,y0,x1,y1){
2325012Ssam 	botx = 2.;
2425012Ssam 	boty = 2.;
2525001Ssam 	obotx = x0;
2625001Ssam 	oboty = y0;
2725001Ssam 	if(scaleflag)
2825001Ssam 		return;
2925012Ssam 	scalex = (8.0 * PlotRes)/(x1-x0);
3025012Ssam 	scaley = (8.0 * PlotRes)/(y1-y0);
3125001Ssam }
32