hp2ps: MARKs wrongly placed unless x-axis starts at zero
Simon Marlow
simonmar at microsoft.com
Wed Jul 30 13:09:27 EDT 2003
> The following seems to do the trick.
>
> N
>
>
> *** Marks.bad.c 2003-07-30 18:00:12.000000000 +0100
> --- Marks.c 2003-07-30 18:00:15.000000000 +0100
> ***************
> *** 16,22 ****
> floatish m;
>
> for (i = 0; i < nmarks; i++) {
> ! m = (markmap[i] / xrange) * graphwidth;
> Caret(xpage(m), ypage(0.0), 4.0);
> }
> }
> --- 16,22 ----
> floatish m;
>
> for (i = 0; i < nmarks; i++) {
> ! m = ((markmap[i] - samplemap[0]) / xrange) * graphwidth;
> Caret(xpage(m), ypage(0.0), 4.0);
> }
> }
Committed; thanks.
Simon
More information about the Glasgow-haskell-bugs
mailing list