00001
00002 c
00003 c Copyright (c) 1986,1987,1988,1989,1990,1991,1992,1993,
00004 c by Steve McMillan, Drexel University, Philadelphia, PA.
00005 c
00006 c All rights reserved.
00007 c
00008 c Redistribution and use in source and binary forms are permitted
00009 c provided that the above copyright notice and this paragraph are
00010 c duplicated in all such forms and that any documentation,
00011 c advertising materials, and other materials related to such
00012 c distribution and use acknowledge that the software was developed
00013 c by the author named above.
00014 c
00015 c THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
00016 c IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
00017 c WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00018 c
00019
00020
00021 subroutine get scaling(x1,x2,dx,xl,y1,y2,dy,yl)
00022 save
00023 common/scales/ xmin,xmax,dxinch,ymin,ymax,dyinch,rlen,slen
00024 c
00025 entry get scales(x1,x2,dx,xl,y1,y2,dy,yl)
00026 c
00027 x1=xmin
00028 x2=xmax
00029 dx=dxinch
00030 xl=rlen
00031 y1=ymin
00032 y2=ymax
00033 dy=dyinch
00034 yl=slen
00035 c
00036 return
00037 c
00038 entry set scaling(xref,fx,yref,fy)
00039 entry set scales(xref,fx,yref,fy)
00040 c
00041 c Set essential scaling without a call to eframe, so uplot,
00042 c mline, etc. can be used.
00043 c
00044 xmin=xref
00045 dinchx=fx
00046 ymin=yref
00047 dinchy=fy
00048 c
00049 return
00050 end