Path: utzoo!mnetor!uunet!husc6!mailrus!tut.cis.ohio-state.edu!rutgers!mtunx!whuts!homxb!genesis!hotlr!anumb!adh From: adh@anumb.UUCP (a.d.hay) Newsgroups: comp.sys.ibm.pc Subject: Re: Selection of Axes scale, intervals for a set of points Message-ID: <230@anumb.UUCP> Date: 29 Apr 88 12:58:24 GMT References: <2656@phoenix.Princeton.EDU> Reply-To: adh@anumb.UUCP (a.d.hay) Organization: AT&T Bell Laboratories - MV Lines: 37 Keywords: need an algorithm In article <2656@phoenix.Princeton.EDU> amlovell@phoenix.Princeton.EDU (Anthony M Lovell) writes: >I looked in the library till my head hurt (I'm no expert at library >use), so I'm going to ask if any netter can refer me to (or supply) a >good algorithm for determining "nice" ranges and intervals for >plotting a set of points. I can have the points "on hand", so I'll know >the max and min for both x and y components. Then... >it's sorta tricky to have the computer apply the same hazy decisions a >person would use in determining an appealing set of axes for the graph. >Can anyone help me and keep me from reinventing the wheel? > how 'bout using integer division on the min & max? divide by 5 or 10 (for example) then round away from the data range. >-- >amlovell@phoenix.princeton.edu ...since 1963. > >disclaimer: >These are MY opinions. You only WISH they were yours. no, i don't, either! l i n e s t u f f i n g -- Andrew Hay +------------------------------------------------------+ AT&T-BL Ward Hill MA | "Don`t try to out-wierd ME, three-eyes!" | ihnp4!mvuxq!adh +------------------------------------------------------+