xref: /csrg-svn/lib/libplot/hp7221/space.c (revision 15477)
1 #ifndef lint
2 static char sccsid[] = "@(#)space.c	4.1 (Berkeley) 11/10/83";
3 #endif
4 
5 #include "hp7221.h"
6 
7 space(x0,y0,x1,y1)
8 int x0,y0,x1,y1;
9 {
10 	double scalex, scaley;
11 	lowx = x0;
12 	lowy = y0;
13 	scalex = XMAX/(double)(x1-lowx);
14 	scaley = YMAX/(double)(y1-lowy);
15 	scale = scalex < scaley ? scalex : scaley;
16 }
17