xref: /csrg-svn/lib/libplot/t4013/space.c (revision 62556)
148523Sbostic /*-
2*62556Sbostic  * Copyright (c) 1985, 1993
3*62556Sbostic  *	The Regents of the University of California.  All rights reserved.
448523Sbostic  *
548523Sbostic  * %sccs.include.proprietary.c%
622625Sdist  */
722625Sdist 
817622Sjak #ifndef lint
9*62556Sbostic static char sccsid[] = "@(#)space.c	8.1 (Berkeley) 06/07/93";
1048523Sbostic #endif /* not lint */
1117622Sjak 
1217622Sjak extern float botx;
1317622Sjak extern float boty;
1417622Sjak extern float obotx;
1517622Sjak extern float oboty;
1617622Sjak extern float scalex;
1717622Sjak extern float scaley;
1817622Sjak extern int scaleflag;
space(x0,y0,x1,y1)1917622Sjak space(x0,y0,x1,y1){
2017622Sjak 	botx = 0.;
2117622Sjak 	boty = 0.;
2217622Sjak 	obotx = x0;
2317622Sjak 	oboty = y0;
2417622Sjak 	if(scaleflag)
2517622Sjak 		return;
2617622Sjak 	scalex = 780./(x1-x0);
2717622Sjak 	scaley = 780./(y1-y0);
2817622Sjak }
29