projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
date and time created 83/11/10 14:44:42 by ralph
[unix-history]
/
usr
/
src
/
lib
/
libplot
/
hp7221
/
space.c
#ifndef lint
static char
sccsid
[] =
"@(#)space.c 4.1 (Berkeley) %G%"
;
#endif
#include
"hp7221.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
;
}