Hello,

On 16.10.09, Alan G Isaac wrote:
> As you see, the corners are cut off of every vertex of
> the triangle.  (Current SVN.)

The effect you describe is well known. In fact, we discussed about it
many years ago and decided to leave it like it is. The problem is that
the true bounding box of a picture does depend on both the paths and
the respective linewidth. It is simple to calculate bounding boxes for
lines; for curves it is more difficult. PyX calculates these two.
Including also the linewidth and stroke effects coming from the
different linejoin parameters is really difficult. We decided not to
do this, as it would lead to a reimplementation of ghostscript.

This is why canvas.writeEPSfile and the equivalent for PDF take a
parameter "bboxenlarge". This is meant to serve as a workaround for
the above problem. It is set to 1pt by default. As you increased the
linewidth to 1cm, you should play also with this parameter.

You may also use ghostscript to calculate the true bounding box:
  gs -dNOPAUSE -q -dBATCH -sDEVICE=bbox

Michael

-- 
Michael Schindler
  Laboratoire de Physico-Chimie Théorique.
  ESPCI. 10 rue Vauquelin, 75231 Paris cedex 05, France.
  Tel: +33 (0)1 40 79 45 97    Fax: +33 (0)1 40 79 47 31
  http:  www.pct.espci.fr/~michael

------------------------------------------------------------------------------
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

Reply via email to