V10/libplot/lib4014/range.c

Compare this file to the similar file:
Show the results in this format:

#include <stdio.h>
#include "tek.h"
range(x0, y0, x1, y1) 
double	x0, y0, x1, y1; 
{
	e1->xmin = x0;
	e1->ymin = y0;
	e1->scalex = e1->sidex / (x1 - x0);
	e1->scaley = e1->sidey / (y1 - y0);
	e1->quantum = e0->quantum / sqrt(e1->scalex * e1->scalex +
		 e1->scaley * e1->scaley);
	if(e1->quantum < .01)
		e1->quantum = .01;
}