|
RE: hp2ps: MARKs wrongly placed unless x-axis starts at zero: msg#00087lang.haskell.glasgow.bugs
On Wed, 30 Jul 2003, Simon Peyton-Jones wrote: > Interesting. We're clueless about hp2ps here at GHC home base. Would > you (or any else) like to fix this? We'd be happy to apply a patch, > needless to say! 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); } }
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: hp2ps: MARKs wrongly placed unless x-axis starts at zero, Simon Peyton-Jones |
|---|---|
| Next by Date: | RE: hp2ps: MARKs wrongly placed unless x-axis starts at zero, Simon Marlow |
| Previous by Thread: | RE: hp2ps: MARKs wrongly placed unless x-axis starts at zero, Simon Peyton-Jones |
| Next by Thread: | RE: hp2ps: MARKs wrongly placed unless x-axis starts at zero, Simon Marlow |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |