I have an object that is partly across the viewing area boundary. Rather than clipping the part of the object that is outside the viewing area, a different area is drawn across the whole viewing area:
set xrange [-0.72:0.72]
set yrange [-0.72:0.72]
set object 1 polygon from -0.72431850 , 0.21111970 to -0.72003382 , 0.22530005 to -0.72584313 , 0.22711780 to -0.73016238 , 0.21282303 to -0.72431850 , 0.21111970 fs solid fc rgb "gold"
plot 1
This is with Version 4.6 patchlevel 4 installed on OSX 10.8.4 using MacPorts. Attached is an eps file of what the incorrect output looks like.
Thanks.
Known/previously-reported bug - fixed in CVS for 4.7
ChangeLog entry:
2013-04-25 Christoph Bersch usenet@bersch.net
* src/gadgets.c src/gadgets.h src/graphics.c src/term.c:
Implement the Sutherland-Hodgman algorithm for clipping a general
polygon against a rectangular bounding box. Apply this to clip
polygon objects (including circles and ellipses) and arrowheads.