xref: /csrg-svn/lib/libplot/gigi/space.c (revision 19974)
1*19974Sdist /*
2*19974Sdist  * Copyright (c) 1980 Regents of the University of California.
3*19974Sdist  * All rights reserved.  The Berkeley software License Agreement
4*19974Sdist  * specifies the terms and conditions for redistribution.
5*19974Sdist  */
6*19974Sdist 
715496Sralph #ifndef lint
8*19974Sdist static char sccsid[] = "@(#)space.c	5.1 (Berkeley) 05/07/85";
9*19974Sdist #endif not lint
1015496Sralph 
1115496Sralph #include "gigi.h"
1215496Sralph 
1315496Sralph space(x0,y0,x1,y1)
1415496Sralph int x0,y0,x1,y1;
1515496Sralph {
1615496Sralph 	lowx = x0;
1715496Sralph 	lowy = y0;
1815496Sralph 	scalex = XMAX/(x1-lowx);
1915496Sralph 	scaley = YMAX/(y1-lowy);
2015496Sralph }
21