Path: utzoo!utgpu!watmath!clyde!att!rutgers!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpda!hpdslab!hpiacla!jim From: jim@hpiacla.HP.COM (Jim Rogers) Newsgroups: comp.unix.questions Subject: Re: Troff "grap" question Message-ID: <3600015@hpiacla.HP.COM> Date: 2 Dec 88 16:27:59 GMT References: <618@wc11.idca.tds.philips.nl> Organization: Hewlett Packard Lines: 21 >I want to use the troff "grap" preprocessor to plot a graph. The problem is >that the input has as x-coordinate weeknumbers. So the range of the >x-axis is e.g. 8801:8852, 8901:8952, .......... > >How can i tell "grap" that there is a gap in the x-axis; that week 8901 is the >successor of week 8852 and NOT 8900 ! You will have to pass the data through a filter which adds another column. This new column should be the number of weeks since some starting date. For instance, if your starting date is 8801 then a week value of 8801 would give a week offset of 0, week value 8801 would give a value of 1, and 8901 would give a week value of 52. This new column would be used to plot the x-axis values. The original week date column would be used as labels for the x-axis tick marks. Jim (my plotter is a Laserjet II) Rogers Hewlett Packard Sunnyvale, California