Troff "grap" question

Jim Rogers jim at hpiacla.HP.COM
Sat Dec 3 02:27:59 AEST 1988


>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



More information about the Comp.unix.questions mailing list