Xref: utzoo comp.text:2845 comp.graphics:3761 comp.unix.questions:10404
Path: utzoo!utgpu!watmath!clyde!att!pacbell!pbhyf!kjk
From: kjk@pbhyf.PacBell.COM (Ken Keirnan)
Newsgroups: comp.text,comp.graphics,comp.unix.questions
Subject: Re: Troff "grap" question
Message-ID: <4321@pbhyf.PacBell.COM>
Date: 30 Nov 88 16:35:01 GMT
References: <618@wc11.idca.tds.philips.nl>
Reply-To: kjk@pbhyf.PacBell.COM (Ken Keirnan)
Organization: Pacific * Bell, San Ramon, CA
Lines: 23

In article <618@wc11.idca.tds.philips.nl> ekkel@idca.tds.PHILIPS.nl (Erik Ekkel) writes:
>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 !


If you know the number of points along the x-axis in advance, one way would be
to specify the number of x-axis intervals with the "coord" keyword and then
make the week numbers tick labels.  For example if you have 52 points on the
x-axis:

coord x 0,52
ticks bot out at 1 "8801",2 "8802" ...

or whatever interval you want between ticks.  I know this is messy, but nothing
else comes to mind.
-- 

Ken Keirnan - Pacific Bell - {att,bellcore,sun,ames,pyramid}!pacbell!pbhyf!kjk
  San Ramon, California	                    kjk@pbhyf.PacBell.COM