Re: [Groff] dynamic grap ticks

2013-04-27 Thread Ralph Corderoy
Hi James, > At first I tried > > ticks at copy "t" > > which didn't work No, `copy' is a top-level command, just like `ticks'. It can't appear anywhere you'd like t's input; it's not part of a separate preprocessor, for instance. > Now I finally understand something that, to me at lea

Re: [Groff] dynamic grap ticks

2013-04-27 Thread James K. Lowden
On Sat, 27 Apr 2013 11:19:01 +0100 Ralph Corderoy wrote: > > I tried many variations of > > > > ticks sh { awk ... } > > > > without any luck. > > Use `sh' to produce the whole `ticks' line in a temporary file and > then `copy' to read it in? Ah, thanks, Ralph! At first I tried

Re: [Groff] dynamic grap ticks

2013-04-27 Thread Ralph Corderoy
Hi James, > Is there's a cool way to pass "sh" output to grap's ticks command? > > I'd like to generate my x-axis "ticks" programatically, from the > data I'm bringing in with "copy". I have a line like this: > > ticks bottom out at 6.4000e+01 "\s-1%.0f", 9.05096680e+01 "%.0f", \ > 1.2800

Re: [Groff] dynamic grap ticks

2013-04-27 Thread Ralph Corderoy
Hi James, > While I'm in the neighborhood, the grap manual says that labels stack, > but mine (version 1.41) doesn't seem to: > > $ cat t > .G1 > label top "abc", "def" > .G2 > > $ grap t > grap: syntax error > Error near line 2, file "t" > context is: > label top "abc" >>> , <<< "def"

[Groff] dynamic grap ticks

2013-04-26 Thread James K. Lowden
Is there's a cool way to pass "sh" output to grap's ticks command? I'd like to generate my x-axis "ticks" programatically, from the data I'm bringing in with "copy". I have a line like this: ticks bottom out at 6.4000e+01 "\s-1%.0f", 9.05096680e+01 "%.0f", \ 1.2800e+02 "%.0f", 1.810193