Hi,
With the contour graph window active, bring up the Script Window and then copy-paste the lines of script shown below. Then select all the lines and press enter to execute the script.
Easwar
OriginLab
oldunit=layer.unit;
layer.unit = 2;
dwidth = x2 - x1;
dheight = y2 - y1;
if(dwidth/dheight > 1)
{
layer.height = layer.width * dheight / dwidth;
}
else
{
layer.width = layer.height * dwidth / dheight;
}
layer.unit=oldunit;