Share

gnuplot development

Tracker: Patches

5 postscript PolyFill ghostscript rounding workaround - ID: 1912197
Last Update: Comment added ( sfeam )

Previously posted on the bugs list; reposted here since it includes a
patch.
I noticed that with filledcurves the filled area diverges from the drawn
line when viewed in gv. The path drawing code has a workaround for rounding
error in the postscript interpreter, but this is missing in the polygon
drawing. This patch changes the polygon drawing code so that they both
output the exact same sequence of lineto/rlineto.

(That a line is drawn around the filled area as a separate (but now
identical) path is quite wasteful, and even more so when the line width is
0, but I haven't looked into whether this would be a hard thing to change.)


Carl Troein ( troein ) - 2008-03-11 21:07

5

Closed

Accepted

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2008-03-13 18:08
Sender: sfeamProject Admin


Got it. Thanks.

As to the separate bounding line - that is done by the core code routines
because not all terminal types offer an option to fill and bound in the
same command. Also note that PostScript interprets linewidth 0 as
"thinnest line supported by the device", not as "zero width line".


Log in to comment.

Attached File ( 1 )

Filename Description Download
ps_polyfill_absrel.patch Download

Changes ( 4 )

Field Old Value Date By
status_id Open 2008-03-13 18:08 sfeam
resolution_id None 2008-03-13 18:08 sfeam
close_date - 2008-03-13 18:08 sfeam
File Added 270016: ps_polyfill_absrel.patch 2008-03-11 21:07 troein