|
From: Ethan M. <merritt@u.washington.edu> - 2003-12-16 00:06:24
|
On Sunday 14 December 2003 23:41, Petr Mikulik wrote:
>
> As a test, try "set pm3d map; splot x" (or "splot y") (maybe adjust
> sampling) with output to a color postscript file, pass it through
> pm3dConvert....awk script and see whether it is OK in ghostview.
It is true that the awk scripts do not like having the "stroke"
present. However, the stroke command is nevertheless correct
in cases where it is needed in order to complete the previous
line-drawing sequence.
I did not find any tests in which the *.ps output was incorrectly
rendered by gv with the PS_FLUSH_PATH present; only cases
where the awk scripts failed to parse it.
However, it is true that the original code called PS_FLUSH_PATH
in more cases than is strictly necessary. I changed the call in=20
PS_filled_polygon to be conditional:
/* Stroke the previous graphic element if required. */
if (PS_relative_ok)
PS_FLUSH_PATH;
This works for all the test cases I have tried, but I don't=20
guarantee there isn't some sequence of calls that will insert
a "stroke" somewhere that the awk scripts do not expect it.
If there is such a case, I think the fix will have to be in the awk scrip=
ts.
--=20
Ethan A Merritt merritt@u.washington.edu
Biomolecular Structure Center Box 357742
University of Washington, Seattle, WA 98195
|