Alan,I just want to note, that the situation has already improved a lot. In earlier versions, PyX did not calculate proper bounding boxes for bezier curves and did not take into account the line width at all in the calculation of the bounding boxes. This is fixed for some time already. It is related to some rework in the output system, where we now are able to keep the graphics state (and thus the current line width at the moment). The only errors left result from path (element) endings. We do not acknowledge linecap, linejoin, and miterlimit. It is possible to add that, but nobody did it so far. We would also need to implement this for all path elements, not just the normpaths, as we certainly don't want to force everything to become normpaths. However, the issue should be still manageable, as we only need to take into account the path element ends.
Still, I don't see somebody just implementing it in the near future. Best, André Am 16.10.2009 um 23:36 schrieb Alan G Isaac:
A picture is worth 1000 words: import pyx from pyx.path import path, moveto, rlineto, closepathc = pyx.canvas.canvas(attrs=[pyx.style.linewidth (1),pyx.style.linejoin(0)])triangle = path(moveto(0,0), rlineto(6,0)) x,y = pyx.trafo.rotate(120).apply(6,0) triangle.extend([rlineto(x,y),closepath()]) c.stroke(triangle) c.writeEPSfile('c:/temp/temp.eps') As you see, the corners are cut off of every vertex of the triangle. (Current SVN.) Cheers, Alan Isaac ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CAis the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stayahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ PyX-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-user
-- by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim / \ \ / ) [email protected], http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference
_______________________________________________ PyX-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-user
