date and time created 83/11/11 15:12:49 by ralph
[unix-history] / usr / src / lib / libplot / hp7221 / space.c
CommitLineData
ad0d4fd4
RC
1#ifndef lint
2static char sccsid[] = "@(#)space.c 4.1 (Berkeley) %G%";
3#endif
4
5#include "hp7221.h"
6
7space(x0,y0,x1,y1)
8int 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}