Path: utzoo!utgpu!watmath!clyde!att!ucbvax!ucdavis!deneb.ucdavis.edu!vmrad From: vmrad@deneb.ucdavis.edu (0048;0000008890;500;737;56;) Newsgroups: comp.graphics Subject: I need a wheel... Message-ID: <3343@ucdavis.ucdavis.edu> Date: 2 Dec 88 17:46:22 GMT Sender: uucp@ucdavis.ucdavis.edu Reply-To: vmrad@deneb.ucdavis.edu (PUT YOUR NAME HERE) Organization: University of California, Davis Lines: 17 I am currently creating a graph drawing package for our Sophy nuclear medicine computer. Among the items I wish this package to do is label the axis with pleasing numbers, and place tick marks at pleasing intervals. I found that writing a function which produces such pleasing numbers given the min and max as input is decidedly non-trivial. Rather than re-invent a wheel, I thought I would try and tap the collective expertise of comp.graphics. What I am looking for in a nutshell: axisMin axisMax =somefunction=> graphMin graphMax majorTick minorTick Can anyone point me toward some code that generates such axis values? A reference that discusses such code would be very nice, too. We have almost 300 books on graphics here at UCD, and I picked the ten most likely to have such a discussion and found nothing. I do not savor the idea of perusing the remainder of the books for such a function.