date and time created 83/11/10 11:03:28 by ralph
authorRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Fri, 11 Nov 1983 03:03:28 +0000 (19:03 -0800)
committerRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Fri, 11 Nov 1983 03:03:28 +0000 (19:03 -0800)
SCCS-vsn: lib/libplot/bitgraph/space.c 4.1

usr/src/lib/libplot/bitgraph/space.c [new file with mode: 0644]

diff --git a/usr/src/lib/libplot/bitgraph/space.c b/usr/src/lib/libplot/bitgraph/space.c
new file mode 100644 (file)
index 0000000..4de67b7
--- /dev/null
@@ -0,0 +1,16 @@
+#ifndef lint
+static char sccsid[] = "@(#)space.c    4.1 (Berkeley) %G%";
+#endif
+
+#include "bg.h"
+
+space(x0,y0,x1,y1)
+int x0,y0,x1,y1;
+{
+       double scalex, scaley;
+       lowx = x0;
+       lowy = y0;
+       scalex = XMAX/(double)(x1-lowx);
+       scaley = YMAX/(double)(y1-lowy);
+       scale = scalex < scaley ? scalex : scaley;
+}