Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ecr1.UUCP Path: utzoo!hcrvax!ecrhub!ecr1!renia From: renia@ecr1.UUCP (Renata Kraszewski) Newsgroups: net.graphics Subject: Help with scaling Message-ID: <145@ecr1.UUCP> Date: Wed, 29-May-85 14:19:10 EDT Article-I.D.: ecr1.145 Posted: Wed May 29 14:19:10 1985 Date-Received: Fri, 31-May-85 16:01:58 EDT Organization: Emerald City Research Inc., Toronto Lines: 22 I am writing a number of business graphics packages and the problem I keep running into is finding a general algorithm for displaying numbers along the y axis of a graph. One of the constraints is that there is only a finite amount of space. For example how can you take care of cases such as: a) Maximum = 111111111145 Minimum = 111111111144 b) Maximum = .2222222244 Minimum = .2222222243 as well as the usual ones such as c) Maximum = 1000 Minimum = 0 in a restricted width? The only way I know of so far is to represent each number as: (number * multiplicative factor) + additive factor For example, in case a) above if I had 10 divisions along the y axis, the labels would go from 4.0 to 5.0 in steps of .1 and somewhere on the graph I would have to say that the values are in (10**0's + 11111111114.) any ideas?? Renia (utzoo!hcr!ecrhub!ecr1!renia)